From: Christian Grothoff Date: Wed, 25 Jan 2012 09:47:23 +0000 (+0000) Subject: -fix X-Git-Tag: initial-import-from-subversion-38251~15136 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=766b916528b6e2f35a66531f31ae4ab3077bdb07;p=oweals%2Fgnunet.git -fix --- 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) { do_stop = write_progress (adc, filename, S_ISDIR (sbuf.st_mode), GNUNET_DIR_SCANNER_DOES_NOT_EXIST); + if (do_stop) + return GNUNET_SYSERR; return GNUNET_OK; } @@ -774,7 +776,7 @@ scan_directory (void *cls, const char *filename) if (do_stop) { /* We were asked to stop, acknowledge that and return */ - do_stop = write_progress (adc, filename, S_ISDIR (sbuf.st_mode), + (void) write_progress (adc, filename, S_ISDIR (sbuf.st_mode), GNUNET_DIR_SCANNER_ASKED_TO_STOP); return GNUNET_SYSERR; }