summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoss Lagerwall <rosslagerwall@gmail.com>2014-09-15 21:32:04 +0100
committerRoss Lagerwall <rosslagerwall@gmail.com>2014-09-27 09:32:40 +0100
commitfab432937b4bfcd56c07c8be3e14335612bd42f3 (patch)
tree8ed4cbfcc2f35a5a0112e0737065268d7d6b3aaa
parent1a1cd88c3d91937cc48abf80d586e60654f5ca8e (diff)
downloadgvfs-fab432937b4bfcd56c07c8be3e14335612bd42f3.tar.gz
gvfs-set-attribute: Actually implement "-n" flag
Allow setting attributes on symlinks by actually implementing the "-n" flag rather than just ignoring it. https://bugzilla.gnome.org/show_bug.cgi?id=736696
-rw-r--r--programs/gvfs-set-attribute.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/programs/gvfs-set-attribute.c b/programs/gvfs-set-attribute.c
index cbf2b2f9..f110991f 100644
--- a/programs/gvfs-set-attribute.c
+++ b/programs/gvfs-set-attribute.c
@@ -230,7 +230,10 @@ main (int argc, char *argv[])
attribute,
type,
value,
- 0, NULL, &error))
+ nofollow_symlinks ?
+ G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS :
+ G_FILE_QUERY_INFO_NONE,
+ NULL, &error))
{
g_printerr (_("Error setting attribute: %s\n"), error->message);
g_error_free (error);