aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>1998-04-01 11:15:47 +0000
committerH. Peter Anvin <hpa@zytor.com>1998-04-01 11:15:47 +0000
commitb71338e3f424c1b37af3c2695810da9557043a4a (patch)
treea759f66314d18a3484f0d503f2c09c98787abf6e /include
parent17fa2145a79fe7e49f2f7d78dee8a7f28eaee861 (diff)
downloadautofs3-b71338e3f424c1b37af3c2695810da9557043a4a.tar.gz
autofs3-b71338e3f424c1b37af3c2695810da9557043a4a.tar.xz
autofs3-b71338e3f424c1b37af3c2695810da9557043a4a.zip
Add "-s" (sloppy) option to mount if it is supported.
Diffstat (limited to 'include')
-rw-r--r--include/automount.h10
-rw-r--r--include/config.h.in3
2 files changed, 13 insertions, 0 deletions
diff --git a/include/automount.h b/include/automount.h
index d3899ef..ca8c6e7 100644
--- a/include/automount.h
+++ b/include/automount.h
@@ -21,6 +21,16 @@
#error Failed to locate umount(8)!
#endif
+/* The -s (sloppy) option to mount is good, if we have it... */
+
+#ifdef HAVE_SLOPPY_MOUNT
+#define SLOPPYOPT "-s", /* For use in spawnl() lists */
+#define SLOPPY "-s " /* For use in strings */
+#else
+#define SLOPPYOPT
+#define SLOPPY
+#endif
+
/* Standard function used by daemon or modules */
int spawnl(int logpri, const char *prog, ...);
diff --git a/include/config.h.in b/include/config.h.in
index 70ce165..b65d6e7 100644
--- a/include/config.h.in
+++ b/include/config.h.in
@@ -17,3 +17,6 @@
#undef HAVE_E2FSCK
#undef PATH_E2FSCK
+/* Define this option if mount(8) supports the -s (sloppy) option */
+#undef HAVE_SLOPPY_MOUNT
+