summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/param/loadparm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index 8b79ec37d7..2f100b303c 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -4534,6 +4534,7 @@ static int process_usershare_file(const char *dir_name, const char *file_name, i
if (lines == NULL) {
DEBUG(0,("process_usershare_file: loading file %s owned by %u failed.\n",
fname, (unsigned int)sbuf.st_uid ));
+ return -1;
}
/* Should we allow printers to be shared... ? */