stest: remove unneeded lstat
This commit is contained in:
parent
a8ee2aa230
commit
38cb254399
|
@ -54,8 +54,7 @@ void
|
|||
test(const char *path, const char *name) {
|
||||
struct stat st, ln;
|
||||
|
||||
if(!stat(path, &st) && !lstat(path, &ln)
|
||||
&& ( FLAG('a') || name[0] != '.') /* hidden */
|
||||
if(!stat(path, &st) && ( FLAG('a') || name[0] != '.') /* hidden files */
|
||||
&& (!FLAG('b') || S_ISBLK(st.st_mode)) /* block special */
|
||||
&& (!FLAG('c') || S_ISCHR(st.st_mode)) /* character special */
|
||||
&& (!FLAG('d') || S_ISDIR(st.st_mode)) /* directory */
|
||||
|
|
Loading…
Reference in New Issue
Block a user