]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(enum Dereference_symlink): Define.
authorJim Meyering <jim@meyering.net>
Sun, 20 Aug 2000 20:35:25 +0000 (20:35 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 20 Aug 2000 20:35:25 +0000 (20:35 +0000)
(struct cp_options) [dereference]: Change type to Dereference_symlink.

src/copy.h

index 36833460e48aa1d16557214afa555a62a61af16f..81d916f89d93d1c451f9ae01ae84fcb22397aa54 100644 (file)
@@ -22,6 +22,14 @@ enum Sparse_type
   SPARSE_ALWAYS
 };
 
+enum Dereference_symlink
+{
+  DEREF_UNDEFINED = 1,
+  DEREF_ALWAYS,
+  DEREF_NEVER,
+  DEREF_COMMAND_LINE_ARGUMENTS
+};
+
 # define VALID_SPARSE_MODE(Mode)       \
   ((Mode) == SPARSE_NEVER              \
    || (Mode) == SPARSE_AUTO            \
@@ -36,7 +44,7 @@ struct cp_options
   int copy_as_regular;
 
   /* If nonzero, dereference symbolic links (copy the files they point to). */
-  int dereference;
+  enum Dereference_symlink dereference;
 
   /* If nonzero, remove existing destination nondirectories. */
   int force;