summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-11-23 08:20:54 +0000
committerChristian Grothoff <christian@grothoff.org>2015-11-23 08:20:54 +0000
commit221f26f9df1f12cbca26105904d7a38fc4029e74 (patch)
treea6f730d24e22b1eb10376d4c61e7934982c68084
parentff404f0793cec5c2f5aff7b43d83cd5090b49076 (diff)
downloadgnunet-gtk-221f26f9df1f12cbca26105904d7a38fc4029e74.tar.gz
gnunet-gtk-221f26f9df1f12cbca26105904d7a38fc4029e74.zip
-fix cfg file writability check
-rw-r--r--src/setup/gnunet-setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/setup/gnunet-setup.c b/src/setup/gnunet-setup.c
index d1c99c16..27ee4169 100644
--- a/src/setup/gnunet-setup.c
+++ b/src/setup/gnunet-setup.c
@@ -628,7 +628,7 @@ run (void *cls,
628 size_t len; 628 size_t len;
629 629
630 (void) GNUNET_DISK_directory_create_for_file (option_cfg_name); 630 (void) GNUNET_DISK_directory_create_for_file (option_cfg_name);
631 dirname = GNUNET_strdup (option_cfg_name); 631 dirname = GNUNET_STRINGS_filename_expand (option_cfg_name);
632 len = strlen (dirname) - 1; 632 len = strlen (dirname) - 1;
633 while ((len > 0) && (dirname[len] != DIR_SEPARATOR)) 633 while ((len > 0) && (dirname[len] != DIR_SEPARATOR))
634 len--; 634 len--;