aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/autofs/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/autofs/common.c')
-rw-r--r--usr.sbin/autofs/common.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/usr.sbin/autofs/common.c b/usr.sbin/autofs/common.c
index 7c8df4205a86..4581e5c4f2f9 100644
--- a/usr.sbin/autofs/common.c
+++ b/usr.sbin/autofs/common.c
@@ -1204,6 +1204,19 @@ lesser_daemon(void)
}
}
+/*
+ * Applicable to NFSv3 only, see rpc.umntall(8).
+ */
+void
+rpc_umntall(void)
+{
+ FILE *f;
+
+ f = auto_popen("rpc.umntall", "-k", NULL);
+ assert(f != NULL);
+ auto_pclose(f);
+}
+
int
main(int argc, char **argv)
{