projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8212aad
)
Only do the chmod NOFOLLOW_SYMLINK checks with HAVE_SYMLINK
author
Benjamin Otte
<otte@gnome.org>
Tue, 1 Sep 2009 18:36:31 +0000
(20:36 +0200)
committer
Benjamin Otte
<otte@gnome.org>
Tue, 1 Sep 2009 19:29:43 +0000
(21:29 +0200)
gio/glocalfileinfo.c
patch
|
blob
|
history
diff --git
a/gio/glocalfileinfo.c
b/gio/glocalfileinfo.c
index
7933ed9
..
b4e77d9
100644
(file)
--- a/
gio/glocalfileinfo.c
+++ b/
gio/glocalfileinfo.c
@@
-1877,13
+1877,15
@@
set_unix_mode (char *filename,
if (!get_uint32 (value, &val, error))
return FALSE;
-
+
+#ifdef HAVE_SYMLINK
if (flags & G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS) {
g_set_error_literal (error, G_IO_ERROR,
G_IO_ERROR_NOT_SUPPORTED,
_("Cannot set permissions on symlinks"));
return FALSE;
}
+#endif
if (g_chmod (filename, val) == -1)
{