[gvfs] gvfs-set-attribute: Actually implement "-n" flag
- From: Ross Lagerwall <rossl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] gvfs-set-attribute: Actually implement "-n" flag
- Date: Sat, 27 Sep 2014 08:33:46 +0000 (UTC)
commit fab432937b4bfcd56c07c8be3e14335612bd42f3
Author: Ross Lagerwall <rosslagerwall gmail com>
Date: Mon Sep 15 21:32:04 2014 +0100
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
programs/gvfs-set-attribute.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/programs/gvfs-set-attribute.c b/programs/gvfs-set-attribute.c
index cbf2b2f..f110991 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]