projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a9a2ff
)
use umount2 syscall for umount (new targets lack old 1-arg umount)
author
Rich Felker
<dalias@aerifal.cx>
Mon, 14 Feb 2011 02:28:43 +0000
(21:28 -0500)
committer
Rich Felker
<dalias@aerifal.cx>
Mon, 14 Feb 2011 02:28:43 +0000
(21:28 -0500)
src/linux/umount.c
patch
|
blob
|
history
diff --git
a/src/linux/umount.c
b/src/linux/umount.c
index c35f994d99914381ddad1b1ef7b6532e21d60c3c..f709b33a92db4e631a6dceb748aba97690956499 100644
(file)
--- 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 syscall
1(__NR_umount, (long)special
);
+ return syscall
2(__NR_umount2, (long)special, 0
);
}