Check for HAVE_LCHOWN (#505887)

2008-01-03  Alexander Larsson  <alexl@redhat.com>

        * glocalfileinfo.c:
	Check for HAVE_LCHOWN (#505887)


svn path=/trunk/; revision=6236
This commit is contained in:
Alexander Larsson 2008-01-03 09:13:39 +00:00 committed by Alexander Larsson
parent 7e6f37d00c
commit e3fa723f99
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2008-01-03 Alexander Larsson <alexl@redhat.com>
* glocalfileinfo.c:
Check for HAVE_LCHOWN (#505887)
2008-01-03 Alexander Larsson <alexl@redhat.com>
* gfileinfo.h:

View File

@ -1760,9 +1760,11 @@ set_unix_uid_gid (char *filename,
else
gid = -1;
#ifdef HAVE_LCHOWN
if (flags & G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS)
res = lchown (filename, uid, gid);
else
#endif
res = chown (filename, uid, gid);
if (res == -1)