aboutsummaryrefslogtreecommitdiffstats
path: root/include/automount.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/automount.h')
-rw-r--r--include/automount.h23
1 files changed, 6 insertions, 17 deletions
diff --git a/include/automount.h b/include/automount.h
index 14f13c5..d3899ef 100644
--- a/include/automount.h
+++ b/include/automount.h
@@ -10,26 +10,15 @@
#define AUTOMOUNT_H
#include <paths.h>
+#include "config.h"
-#ifndef _PATH_MOUNT
-#define _PATH_MOUNT "/bin/mount"
+/* We MUST have the paths to mount(8) and umount(8) */
+#ifndef HAVE_MOUNT
+#error Failed to locate mount(8)!
#endif
-#ifndef _PATH_UMOUNT
-#define _PATH_UMOUNT "/bin/umount"
-#endif
-#ifndef _PATH_AUTOMOUNT
-#define _PATH_AUTOMOUNT "/usr/sbin/automount"
-#endif
-
-#ifndef _PATH_E2FSCK
-#define _PATH_E2FSCK "/sbin/fsck.ext2"
-#endif
-
-/* If smbmount is unavailable, remove the mount_smbfs module from
- modules/Makefile */
-#ifndef _PATH_SMBMOUNT
-#define _PATH_SMBMOUNT "/usr/bin/smbmount"
+#ifndef HAVE_UMOUNT
+#error Failed to locate umount(8)!
#endif
/* Standard function used by daemon or modules */