mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 15:36:14 +01:00
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:
parent
7e6f37d00c
commit
e3fa723f99
@ -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:
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user