ls: make the opendir() warning message more consistent
Print the total file path in the warning message.
This commit is contained in:
parent
ac05587385
commit
1024369f2d
2
ls.c
2
ls.c
|
@ -250,7 +250,7 @@ lsdir(const char *path, const struct entry *dir)
|
||||||
|
|
||||||
if (!(dp = opendir(dir->name))) {
|
if (!(dp = opendir(dir->name))) {
|
||||||
ret = 1;
|
ret = 1;
|
||||||
weprintf("opendir %s:", dir->name);
|
weprintf("opendir %s%s:", path, dir->name);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (chdir(dir->name) < 0)
|
if (chdir(dir->name) < 0)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user