aboutsummaryrefslogtreecommitdiffstats
path: root/daemon/automount.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>1998-03-29 10:26:20 +0000
committerH. Peter Anvin <hpa@zytor.com>1998-03-29 10:26:20 +0000
commite1dbb9fe60aa8bf48b07ce2896838f76cc98e226 (patch)
tree87f278ba5cb3d2738aa2061a17a01a18474dfe7e /daemon/automount.c
parent43d9d88fd0160c7beecba8b78227cc7247e8d6e9 (diff)
downloadautofs3-e1dbb9fe60aa8bf48b07ce2896838f76cc98e226.tar.gz
autofs3-e1dbb9fe60aa8bf48b07ce2896838f76cc98e226.tar.xz
autofs3-e1dbb9fe60aa8bf48b07ce2896838f76cc98e226.zip
Make autofs self-configuring (using autoconf)
Diffstat (limited to 'daemon/automount.c')
-rw-r--r--daemon/automount.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/daemon/automount.c b/daemon/automount.c
index f51b8dc..35b53ea 100644
--- a/daemon/automount.c
+++ b/daemon/automount.c
@@ -87,8 +87,8 @@ static int umount_ent(char *root, char *name)
if ( !lstat(path_buf,&st) ) {
if ( S_ISDIR(st.st_mode) ) {
if ( st.st_dev != ap.dev ) {
- rv = spawnl(LOG_NOTICE, _PATH_UMOUNT,
- _PATH_UMOUNT, path_buf, NULL);
+ rv = spawnl(LOG_DEBUG, PATH_UMOUNT,
+ PATH_UMOUNT, path_buf, NULL);
if ( !rv )
rmdir(path_buf);
} else
@@ -146,7 +146,7 @@ static int do_umount_autofs(void)
}
if (ap.pipefd >= 0)
close(ap.pipefd);
- rv = spawnl(LOG_ERR, _PATH_UMOUNT, _PATH_UMOUNT, ap.path, NULL);
+ rv = spawnl(LOG_ERR, PATH_UMOUNT, PATH_UMOUNT, ap.path, NULL);
if (rv == 0 && submount)
rmdir(ap.path);
@@ -240,7 +240,7 @@ static int mount_autofs(char *path)
(unsigned)my_pgrp, AUTOFS_PROTO_VERSION);
sprintf(our_name, "automount(pid%u)", (unsigned)my_pid);
- if ( spawnl(LOG_CRIT, _PATH_MOUNT, _PATH_MOUNT, "-t", "autofs", "-o",
+ if ( spawnl(LOG_CRIT, PATH_MOUNT, PATH_MOUNT, "-t", "autofs", "-o",
options, our_name, path, NULL) ) {
close(pipefd[0]);
close(pipefd[1]);