diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2019-05-28 12:42:24 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2019-05-28 13:44:40 -0700 |
commit | 3b1046f80f3381af7f81aec7ed8041a883fb50fa (patch) | |
tree | d1271dfc142ccc0dbb12b8814cad21984b7aef94 /src/copy.h | |
parent | 3a87ad51240b593c79f06ca98ca38117908a78c8 (diff) | |
download | coreutils-3b1046f80f3381af7f81aec7ed8041a883fb50fa.tar.gz |
cp: fix /dev/stdin problem on Solaris
Problem reported by Jakub Kulik (Bug#35713).
* NEWS: Mention this.
* configure.ac (DEV_FD_MIGHT_BE_CHR): New macro.
* src/copy.c (DEV_FD_MIGHT_BE_CHR): Default to false.
(follow_fstatat): New function.
(copy_internal): Use it.
* src/copy.h (XSTAT): Remove; no longer used.
Diffstat (limited to 'src/copy.h')
-rw-r--r-- | src/copy.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/copy.h b/src/copy.h index 7d2303c54..102516c68 100644 --- a/src/copy.h +++ b/src/copy.h @@ -276,11 +276,6 @@ struct cp_options Hash_table *src_info; }; -# define XSTAT(X, Src_name, Src_sb) \ - ((X)->dereference == DEREF_NEVER \ - ? lstat (Src_name, Src_sb) \ - : stat (Src_name, Src_sb)) - /* Arrange to make rename calls go through the wrapper function on systems with a rename function that fails for a source file name specified with a trailing slash. */ |