summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-10-28 18:00:57 +0000
committerJim Meyering <jim@meyering.net>2000-10-28 18:00:57 +0000
commite321b0bd0678aaac601900bd3b156bd3974bdee3 (patch)
tree9e3dd96991bb17ac456dac5f86b097aed240a9aa /src
parent007b5b4ba8c8f5afe43d8b287e7d64b658f71304 (diff)
downloadcoreutils-e321b0bd0678aaac601900bd3b156bd3974bdee3.tar.xz
[enum filetype] (arg_directory): Rather than `100', use
a number that should never conflict with another DT_* value. From Ulrich Drepper.
Diffstat (limited to 'src')
-rw-r--r--src/ls.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ls.c b/src/ls.c
index 495978304..9a509417c 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -214,7 +214,8 @@ enum filetype
normal = DT_REG,
symbolic_link = DT_LNK,
sock = DT_SOCK,
- arg_directory = 100
+ arg_directory = 2 * (DT_UNKNOWN | DT_FIFO | DT_CHR | DT_DIR | DT_BLK
+ | DT_REG | DT_LNK | DT_SOCK)
#else
symbolic_link,
directory,