summaryrefslogtreecommitdiffstats
path: root/loader/undomounts.c
diff options
context:
space:
mode:
Diffstat (limited to 'loader/undomounts.c')
-rw-r--r--loader/undomounts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/loader/undomounts.c b/loader/undomounts.c
index 5445a18cb..189572b06 100644
--- a/loader/undomounts.c
+++ b/loader/undomounts.c
@@ -76,7 +76,7 @@ void undoMount(struct unmountInfo * fs, int numFs, int this) {
printf("\t%s", fs[this].name);
/* don't need to unmount /tmp. it is busy anyway. */
- if (umount2(fs[this].name, MNT_DETACH) < 0) {
+ if (umount(fs[this].name) < 0) {
printf(" umount failed (%d)", errno);
} else {
printf(" done");