diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-01-25 09:47:23 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-01-25 09:47:23 +0000 |
commit | 766b916528b6e2f35a66531f31ae4ab3077bdb07 (patch) | |
tree | 90b3d5a9c0d56b83e4896ab52502070868fc199f /src/fs | |
parent | 406bc50fc0d5f9b9b3ec29e0916cfaa6f8e77bc3 (diff) | |
download | gnunet-766b916528b6e2f35a66531f31ae4ab3077bdb07.tar.gz gnunet-766b916528b6e2f35a66531f31ae4ab3077bdb07.zip |
-fix
Diffstat (limited to 'src/fs')
-rw-r--r-- | src/fs/fs_dirmetascan.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fs/fs_dirmetascan.c b/src/fs/fs_dirmetascan.c index b9fa45c1f..0459ca009 100644 --- a/src/fs/fs_dirmetascan.c +++ b/src/fs/fs_dirmetascan.c | |||
@@ -765,6 +765,8 @@ scan_directory (void *cls, const char *filename) | |||
765 | { | 765 | { |
766 | do_stop = write_progress (adc, filename, S_ISDIR (sbuf.st_mode), | 766 | do_stop = write_progress (adc, filename, S_ISDIR (sbuf.st_mode), |
767 | GNUNET_DIR_SCANNER_DOES_NOT_EXIST); | 767 | GNUNET_DIR_SCANNER_DOES_NOT_EXIST); |
768 | if (do_stop) | ||
769 | return GNUNET_SYSERR; | ||
768 | return GNUNET_OK; | 770 | return GNUNET_OK; |
769 | } | 771 | } |
770 | 772 | ||
@@ -774,7 +776,7 @@ scan_directory (void *cls, const char *filename) | |||
774 | if (do_stop) | 776 | if (do_stop) |
775 | { | 777 | { |
776 | /* We were asked to stop, acknowledge that and return */ | 778 | /* We were asked to stop, acknowledge that and return */ |
777 | do_stop = write_progress (adc, filename, S_ISDIR (sbuf.st_mode), | 779 | (void) write_progress (adc, filename, S_ISDIR (sbuf.st_mode), |
778 | GNUNET_DIR_SCANNER_ASKED_TO_STOP); | 780 | GNUNET_DIR_SCANNER_ASKED_TO_STOP); |
779 | return GNUNET_SYSERR; | 781 | return GNUNET_SYSERR; |
780 | } | 782 | } |