ls: make the opendir() warning message more consistent

Print the total file path in the warning message.
This commit is contained in:
Quentin Rameau 2016-02-18 12:48:10 +01:00 committed by sin
parent ac05587385
commit 1024369f2d
1 changed files with 1 additions and 1 deletions

2
ls.c
View File

@ -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)