aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ldid.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ldid.cpp b/ldid.cpp
index 0a656f8..5c0df22 100644
--- a/ldid.cpp
+++ b/ldid.cpp
@@ -3031,7 +3031,7 @@ int main(int argc, char *argv[]) {
struct stat info;
_syscall(stat(path.c_str(), &info));
- if (S_ISDIR(info.st_mode)) {
+ if (flag_S && S_ISDIR(info.st_mode)) {
#ifndef LDID_NOPLIST
_assert(!flag_r);
ldid::DiskFolder folder(path + "/");