From: Christian Grothoff Date: Mon, 5 Apr 2010 11:56:28 +0000 (+0000) Subject: fix X-Git-Tag: initial-import-from-subversion-38251~22285 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e8cb6d674411db8633c8706afe7b62e53d8419b6;p=oweals%2Fgnunet.git fix --- diff --git a/src/util/crypto_rsa.c b/src/util/crypto_rsa.c index 4a0a66b0a..f3bb04cd2 100644 --- a/src/util/crypto_rsa.c +++ b/src/util/crypto_rsa.c @@ -583,7 +583,19 @@ GNUNET_CRYPTO_rsa_key_create_from_file (const char *filename) if (NULL == fd) { if (errno == EEXIST) - continue; + { + if (GNUNET_YES != GNUNET_DISK_file_test (filename)) + { + /* must exist but not be accessible, fail for good! */ + if (0 != ACCESS (filenae, R_OK)) + GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_ERROR, + "access", filename); + else + GNUNET_break (0); /* what is going on!? */ + return NULL; + } + continue; + } GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_ERROR, "open", filename); return NULL; diff --git a/src/util/pseudonym.c b/src/util/pseudonym.c index dfacbdcd8..fcef2e9f8 100644 --- a/src/util/pseudonym.c +++ b/src/util/pseudonym.c @@ -504,6 +504,7 @@ GNUNET_PSEUDONYM_list_all (const struct GNUNET_CONFIGURATION_Handle *cfg, return ret; } + /** * Change the ranking of a pseudonym. * @@ -536,6 +537,7 @@ GNUNET_PSEUDONYM_rank (const struct GNUNET_CONFIGURATION_Handle *cfg, return ranking; } + /** * Insert metadata into existing MD record (passed as cls). * @@ -609,7 +611,4 @@ GNUNET_PSEUDONYM_add (const struct GNUNET_CONFIGURATION_Handle *cfg, } - - - /* end of pseudonym.c */