Hi,

I came across this, doesnt look like the intended behaviour:

--- autofs-3.1.7/modules/mount_ext2.c.rz        Sun Dec 21 23:33:44 2003
+++ autofs-3.1.7/modules/mount_ext2.c   Sun Dec 21 23:34:51 2003
@@ -58,7 +58,7 @@
 
   syslog(LOG_DEBUG, MODPREFIX "calling fsck.ext2 -p %s", what);
   err = spawnl(LOG_DEBUG, PATH_E2FSCK, PATH_E2FSCK, "-p", what, NULL);
-  if ( err & ~7 ) {
+  if ( err & 7 ) {
     syslog(LOG_ERR, MODPREFIX "%s: filesystem needs repair, won't mount",
           what);
     return 1;

Actually it may be better to simply err out on any fsck error
and not try to interpret e2fsck error codes?

Richard

_______________________________________________
autofs mailing list
[EMAIL PROTECTED]
http://linux.kernel.org/mailman/listinfo/autofs

Reply via email to