From d03a7e2b72125cf025e37c33aeb211097c93a3ff Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Mon, 22 Apr 2002 21:09:05 +0000 Subject: [PATCH] mbfile check directory test is improved --- mbfido/mbfcheck.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mbfido/mbfcheck.c b/mbfido/mbfcheck.c index af0f7b5b..a8f25500 100644 --- a/mbfido/mbfcheck.c +++ b/mbfido/mbfcheck.c @@ -145,6 +145,7 @@ void Check(void) WriteError("No others read access in %s, mode is %04o", area.Path, stb.st_mode & 0x1ff); } if (Fix) { + iErrors++; if (chmod(area.Path, 0775)) WriteError("Could not set mode to 0775"); else @@ -162,6 +163,7 @@ void Check(void) Fix = TRUE; } if (Fix) { + iErrors++; pw = getpwnam((char *)"mbse"); gr = getgrnam((char *)"bbs"); if (chown(area.Path, pw->pw_gid, gr->gr_gid))