diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-02-22 18:34:29 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-02-22 18:34:29 +0000 |
commit | e483ac2a2c8eab6d5cc915c2f54ab2c27c469821 (patch) | |
tree | 0cdd2d9b3cc4fc62b085fb2f71103a100313448e /src/fs/fs_sharetree.c | |
parent | 3a04f1fdf2882b96608e164babcd34dbcb2ad777 (diff) | |
download | gnunet-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.c | 2 |
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) || |