diff options
author | Connor Lane Smith | 2011-11-27 23:37:01 +0100 |
---|---|---|
committer | Connor Lane Smith | 2011-11-27 23:37:01 +0100 |
commit | dcd6e771a1867353c14c46fc37e28d6d313cb3b1 (patch) | |
tree | 145b9f7e12fe32f78c03288a6068b29e3609ab8d | |
parent | 8cc28cb4265b0c088ea909e58f42342b2214722e (diff) |
stest: remove unneeded lstat
-rw-r--r-- | stest.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 */ |