aboutsummaryrefslogtreecommitdiff
path: root/src/fs/fs_sharetree.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-02-22 18:34:29 +0000
committerChristian Grothoff <christian@grothoff.org>2012-02-22 18:34:29 +0000
commite483ac2a2c8eab6d5cc915c2f54ab2c27c469821 (patch)
tree0cdd2d9b3cc4fc62b085fb2f71103a100313448e /src/fs/fs_sharetree.c
parent3a04f1fdf2882b96608e164babcd34dbcb2ad777 (diff)
downloadgnunet-e483ac2a2c8eab6d5cc915c2f54ab2c27c469821.tar.gz
gnunet-e483ac2a2c8eab6d5cc915c2f54ab2c27c469821.zip
LRN: two directory patches change the way "is_directory" is evaluated.
Now it must be GNUNET_YES for the execution flow to switch to a branch where something is considered to be a directory. The reason for that is that some functions might return GNUNET_SYSERR when asked whether something is a directory or not. Checking this value as "!= GNUNET_NO" will produce positive result, even though it's not a directory.
Diffstat (limited to 'src/fs/fs_sharetree.c')
-rw-r--r--src/fs/fs_sharetree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fs/fs_sharetree.c b/src/fs/fs_sharetree.c
index ca5f38175..c929428e1 100644
--- a/src/fs/fs_sharetree.c
+++ b/src/fs/fs_sharetree.c
@@ -347,7 +347,7 @@ share_tree_trim (struct TrimContext *tc,
347 } 347 }
348 348
349 /* consider adding filename to directory meta data */ 349 /* consider adding filename to directory meta data */
350 if (tree->is_directory) 350 if (tree->is_directory == GNUNET_YES)
351 { 351 {
352 const char *user = getenv ("USER"); 352 const char *user = getenv ("USER");
353 if ( (user == NULL) || 353 if ( (user == NULL) ||