X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=modules%2Fchown;h=1c271f05420a07184e9a10afbbedde184b53a74e;hb=1a6fbdd7d28dff1868c5eb0baf0029b27e42526a;hp=2a970076ee0f465c58c01fc33b6985b00a823721;hpb=5eeec029e833abe9ba663d51bb556bd1eebb814e;p=gnulib.git diff --git a/modules/chown b/modules/chown index 2a970076e..1c271f054 100644 --- a/modules/chown +++ b/modules/chown @@ -1,5 +1,5 @@ Description: -chown() function: change ownership of a file. +chown() function: change ownership of a file, following symlinks. Files: lib/chown.c @@ -7,10 +7,21 @@ lib/fchown-stub.c m4/chown.m4 Depends-on: -stat-macros +unistd +open [test $HAVE_CHOWN = 0 || test $REPLACE_CHOWN = 1] +stat [test $HAVE_CHOWN = 0 || test $REPLACE_CHOWN = 1] +stdbool [test $HAVE_CHOWN = 0 || test $REPLACE_CHOWN = 1] +sys_stat [test $HAVE_CHOWN = 0 || test $REPLACE_CHOWN = 1] configure.ac: gl_FUNC_CHOWN +if test $HAVE_CHOWN = 0 || test $REPLACE_CHOWN = 1; then + AC_LIBOBJ([chown]) +fi +if test $REPLACE_CHOWN = 1 && test $ac_cv_func_fchown = no; then + AC_LIBOBJ([fchown-stub]) +fi +gl_UNISTD_MODULE_INDICATOR([chown]) Makefile.am: @@ -18,7 +29,7 @@ Include: License: -GPL +LGPLv2+ Maintainer: Jim Meyering