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-Tag: v0.5.9~21 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a5dec11306d7988ec136bd86143591257dd3c56f;p=oweals%2Fmusl.git 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); }