aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-09-14 17:33:29 +0200
committerChristian Grothoff <christian@grothoff.org>2019-09-14 17:33:29 +0200
commit99cb656ca9a40ecba3545d84b7c05f4193200b5b (patch)
treee3f6d2a66ab9a742b02531e3baa36801874912c5
parentdafc5d5bf5d693b63f0b7d4463273d0502cfc9d9 (diff)
downloadgnunet-gtk-99cb656ca9a40ecba3545d84b7c05f4193200b5b.tar.gz
gnunet-gtk-99cb656ca9a40ecba3545d84b7c05f4193200b5b.zip
fix ftbfs
-rw-r--r--src/fs/gnunet-fs-gtk_download-save-as.c19
-rw-r--r--src/fs/gnunet-fs-gtk_publish-dialog.c2
-rw-r--r--src/namestore/plugin_gtk_namestore_box.c38
-rw-r--r--src/namestore/plugin_gtk_namestore_mx.c38
-rw-r--r--src/namestore/plugin_gtk_namestore_soa.c38
-rw-r--r--src/namestore/plugin_gtk_namestore_srv.c38
-rw-r--r--src/namestore/plugin_gtk_namestore_tlsa.c40
-rw-r--r--src/namestore/plugin_gtk_namestore_vpn.c38
-rw-r--r--src/setup/gnunet-setup.c6
9 files changed, 129 insertions, 128 deletions
diff --git a/src/fs/gnunet-fs-gtk_download-save-as.c b/src/fs/gnunet-fs-gtk_download-save-as.c
index b9da6609..cc5592dd 100644
--- a/src/fs/gnunet-fs-gtk_download-save-as.c
+++ b/src/fs/gnunet-fs-gtk_download-save-as.c
@@ -78,7 +78,7 @@ clean_up_download_as_context (struct DownloadAsDialogContext *dlc)
78 g_object_unref (G_OBJECT (dlc->builder)); 78 g_object_unref (G_OBJECT (dlc->builder));
79 if (NULL != dlc->dirname) 79 if (NULL != dlc->dirname)
80 { 80 {
81 if (0 != RMDIR (dlc->dirname)) 81 if (0 != rmdir (dlc->dirname))
82 GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING, 82 GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING,
83 "rmdir", 83 "rmdir",
84 dlc->dirname); 84 dlc->dirname);
@@ -206,12 +206,12 @@ GNUNET_GTK_save_as_dialog_response_cb (GtkDialog *dialog,
206 206
207/* 207/*
208** FIXME: implement handling for corner cases: 208** FIXME: implement handling for corner cases:
209 * A) Selection changes in search tab while SaveAs dialog is open. 209* A) Selection changes in search tab while SaveAs dialog is open.
210 * If it's in direct download mode, ignore that; otherwise destroy the dialog. 210* If it's in direct download mode, ignore that; otherwise destroy the dialog.
211 * B) Download! is pressed in download panel (or the search result is otherwise 211* B) Download! is pressed in download panel (or the search result is otherwise
212 * being downloaded without using saveas dialog) while SaveAs dialog is open. 212* being downloaded without using saveas dialog) while SaveAs dialog is open.
213 * Destroy SaveAs dialog. 213* Destroy SaveAs dialog.
214 */ 214*/
215static void 215static void
216open_saveas_dialog (struct DownloadEntry *de, int download_directly) 216open_saveas_dialog (struct DownloadEntry *de, int download_directly)
217{ 217{
@@ -263,11 +263,12 @@ open_saveas_dialog (struct DownloadEntry *de, int download_directly)
263 263
264 dirname = GNUNET_strdup (de->filename); 264 dirname = GNUNET_strdup (de->filename);
265 basename = (char *) GNUNET_STRINGS_get_short_name (dirname); 265 basename = (char *) GNUNET_STRINGS_get_short_name (dirname);
266 /* basename now points into 'dirname'; cut 'dirname' off at the '/' before basename */ 266 /* basename now points into 'dirname'; cut 'dirname' off at the '/' before
267 * basename */
267 if (basename > dirname) 268 if (basename > dirname)
268 basename[-1] = '\0'; 269 basename[-1] = '\0';
269 270
270 if (0 != STAT (dirname, &sbuf)) 271 if (0 != stat (dirname, &sbuf))
271 { 272 {
272 if (GNUNET_OK != GNUNET_DISK_directory_create (dirname)) 273 if (GNUNET_OK != GNUNET_DISK_directory_create (dirname))
273 { 274 {
diff --git a/src/fs/gnunet-fs-gtk_publish-dialog.c b/src/fs/gnunet-fs-gtk_publish-dialog.c
index bcd10d30..4ad1c091 100644
--- a/src/fs/gnunet-fs-gtk_publish-dialog.c
+++ b/src/fs/gnunet-fs-gtk_publish-dialog.c
@@ -1410,7 +1410,7 @@ add_item (struct AddDirClientContext *adcc,
1410 struct stat sbuf; 1410 struct stat sbuf;
1411 uint64_t fsize; 1411 uint64_t fsize;
1412 1412
1413 if (0 != STAT (item->filename, &sbuf)) 1413 if (0 != stat (item->filename, &sbuf))
1414 { 1414 {
1415 GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_ERROR, "stat", item->filename); 1415 GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_ERROR, "stat", item->filename);
1416 return; 1416 return;
diff --git a/src/namestore/plugin_gtk_namestore_box.c b/src/namestore/plugin_gtk_namestore_box.c
index 82f8fae0..86366cf5 100644
--- a/src/namestore/plugin_gtk_namestore_box.c
+++ b/src/namestore/plugin_gtk_namestore_box.c
@@ -1,22 +1,22 @@
1/* 1/*
2 * This file is part of GNUnet 2 * This file is part of GNUnet
3 * Copyright (C) 2009-2014 GNUnet e.V. 3 * Copyright (C) 2009-2014 GNUnet e.V.
4 * 4 *
5 * GNUnet is free software; you can redistribute it and/or modify 5 * GNUnet is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published 6 * it under the terms of the GNU General Public License as published
7 * by the Free Software Foundation; either version 3, or (at your 7 * by the Free Software Foundation; either version 3, or (at your
8 * option) any later version. 8 * option) any later version.
9 * 9 *
10 * GNUnet is distributed in the hope that it will be useful, but 10 * GNUnet is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of 11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details. 13 * General Public License for more details.
14 * 14 *
15 * You should have received a copy of the GNU General Public License 15 * You should have received a copy of the GNU General Public License
16 * along with GNUnet; see the file COPYING. If not, write to the 16 * along with GNUnet; see the file COPYING. If not, write to the
17 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA. 18 * Boston, MA 02110-1301, USA.
19 */ 19 */
20/** 20/**
21 * @file namestore/plugin_gtk_namestore_box.c 21 * @file namestore/plugin_gtk_namestore_box.c
22 * @brief namestore plugin for editing BOXed records 22 * @brief namestore plugin for editing BOXed records
@@ -99,7 +99,7 @@ box_load (void *cls, gchar *n_value, GtkBuilder *builder)
99 char rest[slen]; 99 char rest[slen];
100 100
101 if (4 != 101 if (4 !=
102 SSCANF (n_value, "%u %u %u %s", &protocol, &service, &record_type, rest)) 102 sscanf (n_value, "%u %u %u %s", &protocol, &service, &record_type, rest))
103 { 103 {
104 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 104 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
105 _ ("Unable to parse (boxed) BOX record `%s'\n"), 105 _ ("Unable to parse (boxed) BOX record `%s'\n"),
diff --git a/src/namestore/plugin_gtk_namestore_mx.c b/src/namestore/plugin_gtk_namestore_mx.c
index bc9b299b..9ab96cb0 100644
--- a/src/namestore/plugin_gtk_namestore_mx.c
+++ b/src/namestore/plugin_gtk_namestore_mx.c
@@ -1,22 +1,22 @@
1/* 1/*
2 * This file is part of GNUnet 2 * This file is part of GNUnet
3 * Copyright (C) 2009-2013 GNUnet e.V. 3 * Copyright (C) 2009-2013 GNUnet e.V.
4 * 4 *
5 * GNUnet is free software; you can redistribute it and/or modify 5 * GNUnet is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published 6 * it under the terms of the GNU General Public License as published
7 * by the Free Software Foundation; either version 3, or (at your 7 * by the Free Software Foundation; either version 3, or (at your
8 * option) any later version. 8 * option) any later version.
9 * 9 *
10 * GNUnet is distributed in the hope that it will be useful, but 10 * GNUnet is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of 11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details. 13 * General Public License for more details.
14 * 14 *
15 * You should have received a copy of the GNU General Public License 15 * You should have received a copy of the GNU General Public License
16 * along with GNUnet; see the file COPYING. If not, write to the 16 * along with GNUnet; see the file COPYING. If not, write to the
17 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA. 18 * Boston, MA 02110-1301, USA.
19 */ 19 */
20 20
21/** 21/**
22 * @file namestore/plugin_gtk_namestore_mx.c 22 * @file namestore/plugin_gtk_namestore_mx.c
@@ -58,7 +58,7 @@ mx_load (void *cls, gchar *n_value, GtkBuilder *builder)
58 uint16_t mx_pref; 58 uint16_t mx_pref;
59 char result[253 + 1]; 59 char result[253 + 1];
60 60
61 if (2 != SSCANF (n_value, "%hu,%253s", &mx_pref, result)) 61 if (2 != sscanf (n_value, "%hu,%253s", &mx_pref, result))
62 { 62 {
63 GNUNET_break (0); 63 GNUNET_break (0);
64 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 64 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
diff --git a/src/namestore/plugin_gtk_namestore_soa.c b/src/namestore/plugin_gtk_namestore_soa.c
index 69b856f6..0dfc893e 100644
--- a/src/namestore/plugin_gtk_namestore_soa.c
+++ b/src/namestore/plugin_gtk_namestore_soa.c
@@ -1,22 +1,22 @@
1/* 1/*
2 * This file is part of GNUnet 2 * This file is part of GNUnet
3 * Copyright (C) 2009-2013 GNUnet e.V. 3 * Copyright (C) 2009-2013 GNUnet e.V.
4 * 4 *
5 * GNUnet is free software; you can redistribute it and/or modify 5 * GNUnet is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published 6 * it under the terms of the GNU General Public License as published
7 * by the Free Software Foundation; either version 3, or (at your 7 * by the Free Software Foundation; either version 3, or (at your
8 * option) any later version. 8 * option) any later version.
9 * 9 *
10 * GNUnet is distributed in the hope that it will be useful, but 10 * GNUnet is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of 11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details. 13 * General Public License for more details.
14 * 14 *
15 * You should have received a copy of the GNU General Public License 15 * You should have received a copy of the GNU General Public License
16 * along with GNUnet; see the file COPYING. If not, write to the 16 * along with GNUnet; see the file COPYING. If not, write to the
17 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA. 18 * Boston, MA 02110-1301, USA.
19 */ 19 */
20 20
21/** 21/**
22 * @file namestore/plugin_gtk_namestore_soa.c 22 * @file namestore/plugin_gtk_namestore_soa.c
@@ -81,7 +81,7 @@ soa_load (void *cls, gchar *n_value, GtkBuilder *builder)
81 unsigned int soa_expire; 81 unsigned int soa_expire;
82 unsigned int soa_min; 82 unsigned int soa_min;
83 83
84 if (7 != SSCANF (n_value, 84 if (7 != sscanf (n_value,
85 "rname=%253s mname=%253s %u,%u,%u,%u,%u", 85 "rname=%253s mname=%253s %u,%u,%u,%u,%u",
86 soa_rname, 86 soa_rname,
87 soa_mname, 87 soa_mname,
diff --git a/src/namestore/plugin_gtk_namestore_srv.c b/src/namestore/plugin_gtk_namestore_srv.c
index 8707f179..0616263c 100644
--- a/src/namestore/plugin_gtk_namestore_srv.c
+++ b/src/namestore/plugin_gtk_namestore_srv.c
@@ -1,22 +1,22 @@
1/* 1/*
2 * This file is part of GNUnet 2 * This file is part of GNUnet
3 * Copyright (C) 2009-2014 GNUnet e.V. 3 * Copyright (C) 2009-2014 GNUnet e.V.
4 * 4 *
5 * GNUnet is free software; you can redistribute it and/or modify 5 * GNUnet is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published 6 * it under the terms of the GNU General Public License as published
7 * by the Free Software Foundation; either version 3, or (at your 7 * by the Free Software Foundation; either version 3, or (at your
8 * option) any later version. 8 * option) any later version.
9 * 9 *
10 * GNUnet is distributed in the hope that it will be useful, but 10 * GNUnet is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of 11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details. 13 * General Public License for more details.
14 * 14 *
15 * You should have received a copy of the GNU General Public License 15 * You should have received a copy of the GNU General Public License
16 * along with GNUnet; see the file COPYING. If not, write to the 16 * along with GNUnet; see the file COPYING. If not, write to the
17 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA. 18 * Boston, MA 02110-1301, USA.
19 */ 19 */
20/** 20/**
21 * @file namestore/plugin_gtk_namestore_srv.c 21 * @file namestore/plugin_gtk_namestore_srv.c
22 * @brief namestore plugin for editing SRV records 22 * @brief namestore plugin for editing SRV records
@@ -92,7 +92,7 @@ srv_load (void *cls, gchar *n_value, GtkBuilder *builder)
92 char target_name[253 + 1]; 92 char target_name[253 + 1];
93 GtkTreeModel *tm; 93 GtkTreeModel *tm;
94 94
95 if (7 != SSCANF (n_value, 95 if (7 != sscanf (n_value,
96 "%u %u %u %u %u %u %253s", 96 "%u %u %u %u %u %u %253s",
97 &protocol, 97 &protocol,
98 &service, 98 &service,
diff --git a/src/namestore/plugin_gtk_namestore_tlsa.c b/src/namestore/plugin_gtk_namestore_tlsa.c
index 719d51cc..d235c08e 100644
--- a/src/namestore/plugin_gtk_namestore_tlsa.c
+++ b/src/namestore/plugin_gtk_namestore_tlsa.c
@@ -1,22 +1,22 @@
1/* 1/*
2 * This file is part of GNUnet 2 * This file is part of GNUnet
3 * Copyright (C) 2009-2014 GNUnet e.V. 3 * Copyright (C) 2009-2014 GNUnet e.V.
4 * 4 *
5 * GNUnet is free software; you can redistribute it and/or modify 5 * GNUnet is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published 6 * it under the terms of the GNU General Public License as published
7 * by the Free Software Foundation; either version 3, or (at your 7 * by the Free Software Foundation; either version 3, or (at your
8 * option) any later version. 8 * option) any later version.
9 * 9 *
10 * GNUnet is distributed in the hope that it will be useful, but 10 * GNUnet is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of 11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details. 13 * General Public License for more details.
14 * 14 *
15 * You should have received a copy of the GNU General Public License 15 * You should have received a copy of the GNU General Public License
16 * along with GNUnet; see the file COPYING. If not, write to the 16 * along with GNUnet; see the file COPYING. If not, write to the
17 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA. 18 * Boston, MA 02110-1301, USA.
19 */ 19 */
20/** 20/**
21 * @file namestore/plugin_gtk_namestore_tlsa.c 21 * @file namestore/plugin_gtk_namestore_tlsa.c
22 * @brief namestore plugin for editing TLSA records 22 * @brief namestore plugin for editing TLSA records
@@ -203,7 +203,7 @@ tlsa_load (void *cls, gchar *n_value, GtkBuilder *builder)
203 size_t slen = strlen (n_value) + 1; 203 size_t slen = strlen (n_value) + 1;
204 char cert_data[slen]; 204 char cert_data[slen];
205 205
206 if (7 != SSCANF (n_value, 206 if (7 != sscanf (n_value,
207 "%u %u %u %u %u %u %s", 207 "%u %u %u %u %u %u %s",
208 &protocol, 208 &protocol,
209 &service, 209 &service,
@@ -804,7 +804,7 @@ import_address_cb (void *cls, const struct sockaddr *addr, socklen_t addrlen)
804 GNUNET_log (GNUNET_ERROR_TYPE_WARNING, 804 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
805 _ ("Failed to connect to target address `%s': %s\n"), 805 _ ("Failed to connect to target address `%s': %s\n"),
806 GNUNET_a2s (addr, addrlen), 806 GNUNET_a2s (addr, addrlen),
807 STRERROR (errno)); 807 strerror (errno));
808 GNUNET_NETWORK_socket_close (ic->sock); 808 GNUNET_NETWORK_socket_close (ic->sock);
809 return; 809 return;
810 } 810 }
diff --git a/src/namestore/plugin_gtk_namestore_vpn.c b/src/namestore/plugin_gtk_namestore_vpn.c
index 8a563051..39e92bf0 100644
--- a/src/namestore/plugin_gtk_namestore_vpn.c
+++ b/src/namestore/plugin_gtk_namestore_vpn.c
@@ -1,22 +1,22 @@
1/* 1/*
2 * This file is part of GNUnet 2 * This file is part of GNUnet
3 * Copyright (C) 2009-2013 GNUnet e.V. 3 * Copyright (C) 2009-2013 GNUnet e.V.
4 * 4 *
5 * GNUnet is free software; you can redistribute it and/or modify 5 * GNUnet is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published 6 * it under the terms of the GNU General Public License as published
7 * by the Free Software Foundation; either version 3, or (at your 7 * by the Free Software Foundation; either version 3, or (at your
8 * option) any later version. 8 * option) any later version.
9 * 9 *
10 * GNUnet is distributed in the hope that it will be useful, but 10 * GNUnet is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of 11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details. 13 * General Public License for more details.
14 * 14 *
15 * You should have received a copy of the GNU General Public License 15 * You should have received a copy of the GNU General Public License
16 * along with GNUnet; see the file COPYING. If not, write to the 16 * along with GNUnet; see the file COPYING. If not, write to the
17 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA. 18 * Boston, MA 02110-1301, USA.
19 */ 19 */
20 20
21/** 21/**
22 * @file namestore/plugin_gtk_namestore_vpn.c 22 * @file namestore/plugin_gtk_namestore_vpn.c
@@ -60,7 +60,7 @@ vpn_load (void *cls, gchar *n_value, GtkBuilder *builder)
60 char s_serv[253 + 1]; 60 char s_serv[253 + 1];
61 unsigned int proto; 61 unsigned int proto;
62 62
63 if (3 != SSCANF (n_value, "%u %53s %253s", &proto, s_peer, s_serv)) 63 if (3 != sscanf (n_value, "%u %53s %253s", &proto, s_peer, s_serv))
64 { 64 {
65 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 65 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
66 _ ("Unable to parse VPN record string `%s'\n"), 66 _ ("Unable to parse VPN record string `%s'\n"),
diff --git a/src/setup/gnunet-setup.c b/src/setup/gnunet-setup.c
index 4e9ff6f4..2b95f4d4 100644
--- a/src/setup/gnunet-setup.c
+++ b/src/setup/gnunet-setup.c
@@ -483,7 +483,7 @@ run (void *cls)
483 (void) GNUNET_CONFIGURATION_load (cfg, option_cfg_name); 483 (void) GNUNET_CONFIGURATION_load (cfg, option_cfg_name);
484 else 484 else
485 (void) GNUNET_CONFIGURATION_load (cfg, NULL); 485 (void) GNUNET_CONFIGURATION_load (cfg, NULL);
486 if (0 != ACCESS (option_cfg_name, W_OK)) 486 if (0 != access (option_cfg_name, W_OK))
487 { 487 {
488 if (ENOENT == errno) 488 if (ENOENT == errno)
489 { 489 {
@@ -496,7 +496,7 @@ run (void *cls)
496 while ((len > 0) && (dirname[len] != DIR_SEPARATOR)) 496 while ((len > 0) && (dirname[len] != DIR_SEPARATOR))
497 len--; 497 len--;
498 dirname[len] = '\0'; 498 dirname[len] = '\0';
499 if (0 != ACCESS (dirname, X_OK | W_OK | R_OK)) 499 if (0 != access (dirname, X_OK | W_OK | R_OK))
500 { 500 {
501 if (ENOENT == errno) 501 if (ENOENT == errno)
502 errno = EACCES; /* really means somewhere access was denied */ 502 errno = EACCES; /* really means somewhere access was denied */
@@ -510,7 +510,7 @@ run (void *cls)
510 stderr, 510 stderr,
511 "Refusing to start as I will be unable to write configuration file `%s': %s\n", 511 "Refusing to start as I will be unable to write configuration file `%s': %s\n",
512 option_cfg_name, 512 option_cfg_name,
513 STRERROR (errno)); 513 strerror (errno));
514 GNUNET_GTK_main_loop_quit (ml); 514 GNUNET_GTK_main_loop_quit (ml);
515 return; 515 return;
516 } 516 }