about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-02-13 21:28:43 -0500
committerRich Felker <dalias@aerifal.cx>2011-02-13 21:28:43 -0500
commita5dec11306d7988ec136bd86143591257dd3c56f (patch)
treeca0fe3f828cba11f91ed3980406b0b8813e03d86
parent1a9a2ff7b0daf99100db53440a0b18b2801566ca (diff)
downloadmusl-a5dec11306d7988ec136bd86143591257dd3c56f.tar.gz
musl-a5dec11306d7988ec136bd86143591257dd3c56f.tar.xz
musl-a5dec11306d7988ec136bd86143591257dd3c56f.zip
use umount2 syscall for umount (new targets lack old 1-arg umount)
-rw-r--r--src/linux/umount.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/linux/umount.c b/src/linux/umount.c
index c35f994d..f709b33a 100644
--- a/src/linux/umount.c
+++ b/src/linux/umount.c
@@ -1,8 +1,7 @@
 #include <sys/mount.h>
-#define SYSCALL_STANDALONE
 #include "syscall.h"
 
 int umount(const char *special)
 {
-	return syscall1(__NR_umount, (long)special);
+	return syscall2(__NR_umount2, (long)special, 0);
 }