commit 1024369f2da0bb7796ae057d6b8523fdf7dd8a31
Author:     Quentin Rameau <[email protected]>
AuthorDate: Thu Feb 18 12:48:10 2016 +0100
Commit:     sin <[email protected]>
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
@@ -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)

Reply via email to