diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2005-07-03 07:16:43 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2005-07-03 07:16:43 +0000 |
commit | 43ab391610c2db8bfbf972a11eb9f874ccc71864 (patch) | |
tree | 9d6e19cf1c7940c73c9fe42b7a7eaefe46069fbe /src/copy.c | |
parent | 5a62048846a9a3cd6525e9e43d314db5ca6a5197 (diff) | |
download | coreutils-43ab391610c2db8bfbf972a11eb9f874ccc71864.tar.xz |
Include fcntl--.h, not unistd-safer.h.
(copy_reg): Don't call fd_safer; no longer needed
now that we include fcntl--.h.
Diffstat (limited to 'src/copy.c')
-rw-r--r-- | src/copy.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/copy.c b/src/copy.c index 6a0ec7520..7f8f10803 100644 --- a/src/copy.c +++ b/src/copy.c @@ -36,6 +36,7 @@ #include "dirname.h" #include "euidaccess.h" #include "error.h" +#include "fcntl--.h" #include "filenamecat.h" #include "full-write.h" #include "getpagesize.h" @@ -44,7 +45,6 @@ #include "quote.h" #include "same.h" #include "savedir.h" -#include "unistd-safer.h" #include "utimecmp.h" #include "utimens.h" #include "xreadlink.h" @@ -213,7 +213,6 @@ copy_reg (char const *src_name, char const *dst_name, bool make_holes = false; source_desc = open (src_name, O_RDONLY); - source_desc = fd_safer (source_desc); if (source_desc < 0) { error (0, errno, _("cannot open %s for reading"), quote (src_name)); @@ -265,7 +264,6 @@ copy_reg (char const *src_name, char const *dst_name, } } - dest_desc = fd_safer (dest_desc); if (dest_desc < 0) { error (0, errno, _("cannot create regular file %s"), quote (dst_name)); |