From 7a905c6ecc2703beae2a05b64fa3482359280581 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 20 May 2005 22:48:08 +0000 Subject: (rpl_chown): Return -1 on failure. --- lib/chown.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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; -- cgit v1.2.3-54-g00ecf