From a5dec11306d7988ec136bd86143591257dd3c56f Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sun, 13 Feb 2011 21:28:43 -0500 Subject: [PATCH] use umount2 syscall for umount (new targets lack old 1-arg umount) --- src/linux/umount.c | 3 +-- 1 file changed, 1 insertion(+), 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 -#define SYSCALL_STANDALONE #include "syscall.h" int umount(const char *special) { - return syscall1(__NR_umount, (long)special); + return syscall2(__NR_umount2, (long)special, 0); } -- 2.25.1