From 766b916528b6e2f35a66531f31ae4ab3077bdb07 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 25 Jan 2012 09:47:23 +0000 Subject: [PATCH] -fix --- src/fs/fs_dirmetascan.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- 2.25.1