[hackers] [sbase] ls: make the opendir() warning message more consistent || Quentin Rameau

From: <git_AT_suckless.org>
Date: Thu, 18 Feb 2016 15:17:25 +0100 (CET)

commit 1024369f2da0bb7796ae057d6b8523fdf7dd8a31
Author: Quentin Rameau <quinq_AT_fifth.space>
AuthorDate: Thu Feb 18 12:48:10 2016 +0100
Commit: sin <sin_AT_2f30.org>
CommitDate: Thu Feb 18 14:17:21 2016 +0000

    ls: make the opendir() warning message more consistent
    
    Print the total file path in the warning message.

diff --git a/ls.c b/ls.c
index 5dbff37..e55c7c5 100644
--- a/ls.c
+++ b/ls.c
_AT_@ -250,7 +250,7 @@ lsdir(const char *path, const struct entry *dir)
 
         if (!(dp = opendir(dir->name))) {
                 ret = 1;
- weprintf("opendir %s:", dir->name);
+ weprintf("opendir %s%s:", path, dir->name);
                 return;
         }
         if (chdir(dir->name) < 0)
Received on Thu Feb 18 2016 - 15:17:25 CET

This archive was generated by hypermail 2.3.0 : Thu Feb 18 2016 - 15:24:14 CET