diff options
author | Alexander Larsson <alexl@redhat.com> | 2008-01-03 09:13:39 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2008-01-03 09:13:39 +0000 |
commit | e3fa723f998c94d01dbee6559b61828a75713ced (patch) | |
tree | d9c0621c6aa58b2800253dd3830adf6f406472ed | |
parent | 7e6f37d00c525621bcf15bdcb9792a4e76d022aa (diff) |
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
-rw-r--r-- | gio/ChangeLog | 5 | ||||
-rw-r--r-- | gio/glocalfileinfo.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gio/ChangeLog b/gio/ChangeLog index f1a7e6d48..94a9db6ab 100644 --- a/gio/ChangeLog +++ b/gio/ChangeLog @@ -1,5 +1,10 @@ 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: * glocalfileinfo.c: Add define for selinux context attribute. diff --git a/gio/glocalfileinfo.c b/gio/glocalfileinfo.c index 1f9cc8fef..eff01296a 100644 --- a/gio/glocalfileinfo.c +++ b/gio/glocalfileinfo.c @@ -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) |