aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConnor Lane Smith <cls@lubutu.com>2011-11-27 23:37:01 +0100
committerConnor Lane Smith <cls@lubutu.com>2011-11-27 23:37:01 +0100
commitdcd6e771a1867353c14c46fc37e28d6d313cb3b1 (patch)
tree145b9f7e12fe32f78c03288a6068b29e3609ab8d
parent8cc28cb4265b0c088ea909e58f42342b2214722e (diff)
stest: remove unneeded lstat
-rw-r--r--stest.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/stest.c b/stest.c
index e75d321..9dbf9c1 100644
--- a/stest.c
+++ b/stest.c
@@ -54,8 +54,7 @@ void
54test(const char *path, const char *name) { 54test(const char *path, const char *name) {
55 struct stat st, ln; 55 struct stat st, ln;
56 56
57 if(!stat(path, &st) && !lstat(path, &ln) 57 if(!stat(path, &st) && ( FLAG('a') || name[0] != '.') /* hidden files */
58 && ( FLAG('a') || name[0] != '.') /* hidden */
59 && (!FLAG('b') || S_ISBLK(st.st_mode)) /* block special */ 58 && (!FLAG('b') || S_ISBLK(st.st_mode)) /* block special */
60 && (!FLAG('c') || S_ISCHR(st.st_mode)) /* character special */ 59 && (!FLAG('c') || S_ISCHR(st.st_mode)) /* character special */
61 && (!FLAG('d') || S_ISDIR(st.st_mode)) /* directory */ 60 && (!FLAG('d') || S_ISDIR(st.st_mode)) /* directory */