aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorgrothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96>2012-12-17 10:42:25 +0000
committergrothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96>2012-12-17 10:42:25 +0000
commit34a8f220e9d321471d82959ea36a4d7fdeec23a0 (patch)
tree79a9a10ee7a338ecd4eb99a5ed11af42201715e4 /src/util
parent89feaa150aad5c301fb9da80e663ea663b9441ac (diff)
-do not print warning if file does not exist yet
git-svn-id: https://gnunet.org/svn/gnunet@25498 140774ce-b5e7-0310-ab8b-a85725594a96
Diffstat (limited to 'src/util')
-rw-r--r--src/util/pseudonym.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/util/pseudonym.c b/src/util/pseudonym.c
index 48852ee378..fa48e19e3e 100644
--- a/src/util/pseudonym.c
+++ b/src/util/pseudonym.c
@@ -248,6 +248,12 @@ read_info (const struct GNUNET_CONFIGURATION_Handle *cfg,
fn = get_data_filename (cfg, PS_METADATA_DIR, nsid);
GNUNET_assert (fn != NULL);
+ if (GNUNET_YES !=
+ GNUNET_DISK_file_test (fn))
+ {
+ GNUNET_free (fn);
+ return GNUNET_SYSERR;
+ }
fileR = GNUNET_BIO_read_open (fn);
if (fileR == NULL)
{