Simplify show details

This commit is contained in:
Arun Prakash Jana 2018-12-08 16:45:31 +05:30
parent 71fbf80925
commit 5d1ca249f9
No known key found for this signature in database
GPG key ID: A75979F35C080412

View file

@ -2923,13 +2923,7 @@ nochange:
break;
mkpath(path, dents[cur].name, newpath, PATH_MAX);
if (lstat(newpath, &sb) == -1) {
dentfree(dents);
errexit();
}
if (!show_stats(newpath, dents[cur].name, &sb)) {
if (lstat(newpath, &sb) == -1 || !show_stats(newpath, dents[cur].name, &sb)) {
printwarn();
goto nochange;
}