]> git.ipfire.org Git - thirdparty/linux.git/blobdiff - fs/open.c
[CVE-2009-0029] System call wrappers part 16
[thirdparty/linux.git] / fs / open.c
index ecc75a2c262e5e53f234b1f25c9d232dcd437f4b..293408b1c1657e08b6befcebbb4360181bb157fa 100644 (file)
--- a/fs/open.c
+++ b/fs/open.c
@@ -1081,7 +1081,7 @@ asmlinkage long sys_openat(int dfd, const char __user *filename, int flags,
  * For backward compatibility?  Maybe this should be moved
  * into arch/i386 instead?
  */
-asmlinkage long sys_creat(const char __user * pathname, int mode)
+SYSCALL_DEFINE2(creat, const char __user *, pathname, int, mode)
 {
        return sys_open(pathname, O_CREAT | O_WRONLY | O_TRUNC, mode);
 }