]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(cp_option_init): Set copy_as_regular to 0, not 1.
authorJim Meyering <jim@meyering.net>
Mon, 16 Feb 1998 23:27:50 +0000 (23:27 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 16 Feb 1998 23:27:50 +0000 (23:27 +0000)
Otherwise, mv tries to open special files.
Reported by Kjetil Torgrim Homme.

src/mv.c

index a2f77ebeb43e68efb193f9f0506a14e6e787a7e6..9b869b74bd49783843d47a562b0bb27c9da41a65 100644 (file)
--- a/src/mv.c
+++ b/src/mv.c
@@ -126,7 +126,7 @@ rm_option_init (struct rm_options *x)
 static void
 cp_option_init (struct cp_options *x)
 {
-  x->copy_as_regular = 1;  /* FIXME: maybe make this an option */
+  x->copy_as_regular = 0;  /* FIXME: maybe make this an option */
   x->dereference = 0;
   x->force = 0;
   x->hard_link = 0;