From 6ed244214a9661642c12ce42eb11f98ee863cde4 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Tue, 20 Jan 2009 09:58:48 -0800 Subject: [PATCH] HAMMER utility - Use a full path to /sbin/mount instead of relying on PATH --- sbin/hammer/cmd_cleanup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/hammer/cmd_cleanup.c b/sbin/hammer/cmd_cleanup.c index 07014e06ea..90535328a6 100644 --- a/sbin/hammer/cmd_cleanup.c +++ b/sbin/hammer/cmd_cleanup.c @@ -97,7 +97,7 @@ hammer_cmd_cleanup(char **av, int ac) tzset(); if (ac == 0) { - fp = popen("mount -t hammer,null", "r"); + fp = popen("/sbin/mount -t hammer,null", "r"); if (fp == NULL) errx(1, "hammer cleanup: 'mount' failed"); while (fgets(buf, sizeof(buf), fp) != NULL) { -- 2.11.4.GIT