X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Flchown.c;fp=lib%2Flchown.c;h=65434b45cce3c4609beede02211d2aa1324cf7c9;hb=9cd8acbae7f8ca3985001de0752b22e2a28d0cd7;hp=8cf10dd0c2e6ee82e2da61a6d9492d609655ee07;hpb=fb1b608caaa3de195f3d97356e95a165ef5517da;p=gnulib.git diff --git a/lib/lchown.c b/lib/lchown.c index 8cf10dd0c..65434b45c 100644 --- a/lib/lchown.c +++ b/lib/lchown.c @@ -20,16 +20,17 @@ #include -/* If the system chown does not follow symlinks, we don't want it - replaced by gnulib's chown, which does follow symlinks. */ -#if CHOWN_MODIFIES_SYMLINK -# define REPLACE_CHOWN 0 -#endif #include #include #include +/* If the system chown does not follow symlinks, we don't want it + replaced by gnulib's chown, which does follow symlinks. */ +#if CHOWN_MODIFIES_SYMLINK +# undef chown +#endif + /* Work just like chown, except when FILE is a symbolic link. In that case, set errno to EOPNOTSUPP and return -1. But if autoconf tests determined that chown modifies