aboutsummaryrefslogtreecommitdiffstats
path: root/conf/umount/umount_bsd44.c
diff options
context:
space:
mode:
Diffstat (limited to 'conf/umount/umount_bsd44.c')
-rw-r--r--conf/umount/umount_bsd44.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/conf/umount/umount_bsd44.c b/conf/umount/umount_bsd44.c
index d05944d8f788..da4412977989 100644
--- a/conf/umount/umount_bsd44.c
+++ b/conf/umount/umount_bsd44.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997-2006 Erez Zadok
+ * Copyright (c) 1997-2014 Erez Zadok
* Copyright (c) 1990 Jan-Simon Pendry
* Copyright (c) 1990 Imperial College of Science, Technology & Medicine
* Copyright (c) 1990 The Regents of the University of California.
@@ -16,11 +16,7 @@
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgment:
- * This product includes software developed by the University of
- * California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
+ * 3. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
@@ -105,6 +101,7 @@ int
umount2_fs(const char *mntdir, u_int unmount_flags)
{
int error = 0;
+
if (unmount_flags & AMU_UMOUNT_FORCE) {
plog(XLOG_INFO, "umount2_fs: trying unmount/forced on %s", mntdir);
error = unmount(mntdir, MNT2_GEN_OPT_FORCE);