From: Rich Felker Date: Mon, 14 Feb 2011 02:28:43 +0000 (-0500) Subject: use umount2 syscall for umount (new targets lack old 1-arg umount) X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=commitdiff_plain;h=a5dec11306d7988ec136bd86143591257dd3c56f;hp=1a9a2ff7b0daf99100db53440a0b18b2801566ca use umount2 syscall for umount (new targets lack old 1-arg umount) --- 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 -#define SYSCALL_STANDALONE #include "syscall.h" int umount(const char *special) { - return syscall1(__NR_umount, (long)special); + return syscall2(__NR_umount2, (long)special, 0); }