aboutsummaryrefslogtreecommitdiff
path: root/src/fs
diff options
context:
space:
mode:
authorLRN <lrn1986@gmail.com>2013-02-19 04:04:30 +0000
committerLRN <lrn1986@gmail.com>2013-02-19 04:04:30 +0000
commitd924f127fd9633ce3e484d54a7efdcdee590dc34 (patch)
treef311d197fa440f021791cdecab8652527ef4c77f /src/fs
parent69348a872cc4fa86702110257c15a18e7bfcbd70 (diff)
downloadgnunet-d924f127fd9633ce3e484d54a7efdcdee590dc34.tar.gz
gnunet-d924f127fd9633ce3e484d54a7efdcdee590dc34.zip
Don't generate namespace key files in the root dir...
Diffstat (limited to 'src/fs')
-rw-r--r--src/fs/fs_namespace.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/fs/fs_namespace.c b/src/fs/fs_namespace.c
index d84fdc5b1..f9cee5ff9 100644
--- a/src/fs/fs_namespace.c
+++ b/src/fs/fs_namespace.c
@@ -240,6 +240,12 @@ GNUNET_FS_namespace_create (struct GNUNET_FS_Handle *h, const char *name)
240 struct GNUNET_FS_Namespace *ret; 240 struct GNUNET_FS_Namespace *ret;
241 241
242 dn = get_namespace_directory (h); 242 dn = get_namespace_directory (h);
243 if (NULL == dn)
244 {
245 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
246 _("Can't determine where namespace directory is\n"));
247 return NULL;
248 }
243 GNUNET_asprintf (&fn, "%s%s%s", dn, DIR_SEPARATOR_STR, name); 249 GNUNET_asprintf (&fn, "%s%s%s", dn, DIR_SEPARATOR_STR, name);
244 GNUNET_free (dn); 250 GNUNET_free (dn);
245 ret = GNUNET_malloc (sizeof (struct GNUNET_FS_Namespace)); 251 ret = GNUNET_malloc (sizeof (struct GNUNET_FS_Namespace));