diff options
author | Jim Meyering <jim@meyering.net> | 2008-03-24 17:38:27 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2008-04-06 09:26:32 +0200 |
commit | 9982e26c12ffae9bbe96eb3ea260d680ab2584a2 (patch) | |
tree | c36c6a86672c01cd670b49b10e87340bcd77af63 /tests/mkdir | |
parent | 2741677b281d66eb33784c7e80c7dec6223b543d (diff) | |
download | coreutils-9982e26c12ffae9bbe96eb3ea260d680ab2584a2.tar.xz |
remove.c: accommodate systems with negative errno values
This is required at least on Haiku and BeOS.
* src/remove.c (write_protected_non_symlink): Return 1 for a write-
protected non-symlink, 0 if we determine it's not, and -1 upon
error (setting errno accordingly only in this final case).
(prompt): Deal with the changed semantics of the above function.
Based on this patch from Axel Dörfler:
http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13071
Diffstat (limited to 'tests/mkdir')
0 files changed, 0 insertions, 0 deletions