diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2005-05-20 22:48:08 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2005-05-20 22:48:08 +0000 |
commit | 7a905c6ecc2703beae2a05b64fa3482359280581 (patch) | |
tree | ac926bac2540d46484f79ba446e3d92c8525f746 /lib | |
parent | e8ddf93a193bde59f8104fb02304806ed8133957 (diff) | |
download | coreutils-7a905c6ecc2703beae2a05b64fa3482359280581.tar.xz |
(rpl_chown): Return -1 on failure.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/chown.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chown.c b/lib/chown.c index 22272bd16..ae6a504a7 100644 --- a/lib/chown.c +++ b/lib/chown.c @@ -1,6 +1,6 @@ /* provide consistent interface to chown for systems that don't interpret an ID of -1 as meaning `don't change the corresponding ID'. - Copyright (C) 1997, 2004 Free Software Foundation, Inc. + Copyright (C) 1997, 2004, 2005 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -53,7 +53,7 @@ rpl_chown (const char *file, uid_t uid, gid_t gid) /* Stat file to get id(s) that should remain unchanged. */ if (stat (file, &file_stats)) - return 1; + return -1; if (gid == (gid_t) -1) gid = file_stats.st_gid; |