stest: remove unneeded lstat
dcd6e771
1 file(s) · +1 −2
| 54 | 54 | test(const char *path, const char *name) { |
|
| 55 | 55 | struct stat st, ln; |
|
| 56 | 56 | ||
| 57 | - | if(!stat(path, &st) && !lstat(path, &ln) |
|
| 58 | - | && ( FLAG('a') || name[0] != '.') /* hidden */ |
|
| 57 | + | if(!stat(path, &st) && ( FLAG('a') || name[0] != '.') /* hidden files */ |
|
| 59 | 58 | && (!FLAG('b') || S_ISBLK(st.st_mode)) /* block special */ |
|
| 60 | 59 | && (!FLAG('c') || S_ISCHR(st.st_mode)) /* character special */ |
|
| 61 | 60 | && (!FLAG('d') || S_ISDIR(st.st_mode)) /* directory */ |