X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fchown.c;h=b7786f62057b7b694df08977c485f62462aac352;hb=2354d5ead305b61c925e53bcfb73d47de7c53162;hp=1301aa6ad7a63185baed7bba77c402c3c5c29d58;hpb=76cfe20c721a2dcefaabf27de32082458b51b281;p=gnulib.git diff --git a/lib/chown.c b/lib/chown.c index 1301aa6ad..b7786f620 100644 --- a/lib/chown.c +++ b/lib/chown.c @@ -1,7 +1,7 @@ /* 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, 2005, 2006 Free Software Foundation, Inc. + Copyright (C) 1997, 2004, 2005, 2006, 2007 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 @@ -21,18 +21,23 @@ #include -/* Disable the definition of chown to rpl_chown (from config.h) in this - file. Otherwise, we'd get conflicting prototypes for rpl_chown on - most systems. */ -#undef chown +/* Specification. */ +#include #include #include #include -#include #include #include +/* Below we refer to the system's chown(). */ +#undef chown + +/* The results of open() in this file are not used with fchdir, + therefore save some unnecessary work in fchdir.c. */ +#undef open +#undef close + /* Provide a more-closely POSIX-conforming version of chown on systems with one or both of the following problems: - chown doesn't treat an ID of -1 as meaning