]> err.no Git - linux-2.6/blobdiff - kernel/acct.c
[PATCH] largefile support for accounting
[linux-2.6] / kernel / acct.c
index 4168f631868e15bb5e9a50c457c9b5f539a6838c..f70e6027cca9758c7ca35f3dc4bd89b7d97d5b14 100644 (file)
@@ -220,7 +220,7 @@ asmlinkage long sys_acct(const char __user *name)
                        return (PTR_ERR(tmp));
                }
                /* Difference from BSD - they don't do O_APPEND */
-               file = filp_open(tmp, O_WRONLY|O_APPEND, 0);
+               file = filp_open(tmp, O_WRONLY|O_APPEND|O_LARGEFILE, 0);
                putname(tmp);
                if (IS_ERR(file)) {
                        return (PTR_ERR(file));