summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1998-02-16 23:27:50 +0000
committerJim Meyering <jim@meyering.net>1998-02-16 23:27:50 +0000
commitf322649c58157844bf24b909976e89e8e53beccb (patch)
tree61822b293ee1c7a6b6a8fd7b6175e4b26a218345
parentf49fee3e5fdbff2aa36e1ed05bf51fe7158cb6c2 (diff)
downloadcoreutils-f322649c58157844bf24b909976e89e8e53beccb.tar.xz
(cp_option_init): Set copy_as_regular to 0, not 1.
Otherwise, mv tries to open special files. Reported by Kjetil Torgrim Homme.
-rw-r--r--src/mv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mv.c b/src/mv.c
index a2f77ebeb..9b869b74b 100644
--- 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;