diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2007-06-16 06:10:44 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2007-06-16 06:10:44 +0000 |
commit | 20b5ea915e5041b7d27d6d4fea6fc34a1d89dc45 (patch) | |
tree | 3073687a448de6ff93cf7ca71a432c5efd8de4c9 /lib/openat.c | |
parent | b6ccac4f09fe7d01cc0b2aeb7b23d028f520ecef (diff) | |
download | gnulib-20b5ea915e5041b7d27d6d4fea6fc34a1d89dc45.tar.gz |
Revamp lchown so that it lives in unistd.h where it belongs.
* lib/lchown.h: Remove.
* lib/dirchownmod.c: Don't include lib/lchown.h.
* lib/fchownat.c: Likewise.
* lib/openat.c: Likewise.
* lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
does not follow symlinks.
(EOPNOTSUPP): Define if not defined.
* lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
is defined to 0.
(lchown): New decl.
* m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
Do not check for lchown decl.
Set REPLACE_LCHOWN.
* m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
REPLACE_LCHOWN.
* modules/chown: Make it clear it follows symlinks.
* modules/lchown: Make it clear it doesn't follow symlinks.
(Files): Remove lib/lchown.h
(Depends-on): Add unistd.
(configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
(Include): Include <unistd.h>, not "lchown.h".
* modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
REPLACE_LCHOWN.
Diffstat (limited to 'lib/openat.c')
-rw-r--r-- | lib/openat.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/openat.c b/lib/openat.c index cd496540e7..25eedbb056 100644 --- a/lib/openat.c +++ b/lib/openat.c @@ -1,5 +1,5 @@ /* provide a replacement openat function - Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc. + Copyright (C) 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 @@ -26,7 +26,6 @@ #include "dirname.h" /* solely for definition of IS_ABSOLUTE_FILE_NAME */ #include "fcntl--.h" -#include "lchown.h" #include "lstat.h" #include "openat-priv.h" #include "save-cwd.h" |