+2010-03-20 Bruno Haible <bruno@clisp.org>
+ Jim Meyering <meyering@redhat.com>
+
+ lchown: Avoid "unused variable" warning.
+ * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
+
2010-03-20 Bruno Haible <bruno@clisp.org>
Work around unlink() bug on MacOS X 10.5.6.
int
rpl_lchown (const char *file, uid_t uid, gid_t gid)
{
- struct stat st;
bool stat_valid = false;
int result;
# if CHOWN_CHANGE_TIME_BUG
+ struct stat st;
+
if (gid != (gid_t) -1 || uid != (uid_t) -1)
{
if (lstat (file, &st))