]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
[enum filetype] (arg_directory): Rather than `100', use
authorJim Meyering <jim@meyering.net>
Sat, 28 Oct 2000 18:00:57 +0000 (18:00 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 28 Oct 2000 18:00:57 +0000 (18:00 +0000)
a number that should never conflict with another DT_* value.
From Ulrich Drepper.

src/ls.c

index 4959783040aaacdb4c4c2e7ec2c24a1b86ea5f8c..9a509417ca21e889ea06565ab0a3411cc3050444 100644 (file)
--- 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,