git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
init: open output files from cpio unpacking with O_LARGEFILE
[sfrench/cifs-2.6.git]
/
init
/
initramfs.c
diff --git
a/init/initramfs.c
b/init/initramfs.c
index 3127e0bf7bbd15487ea6b50bd277801f6c01ae7e..a298a3854a8018923dbbd26adbc271550ef9a198 100644
(file)
--- a/
init/initramfs.c
+++ b/
init/initramfs.c
@@
-367,7
+367,7
@@
static int __init do_name(void)
if (S_ISREG(mode)) {
int ml = maybe_link();
if (ml >= 0) {
- int openflags = O_WRONLY|O_CREAT;
+ int openflags = O_WRONLY|O_CREAT
|O_LARGEFILE
;
if (ml != 1)
openflags |= O_TRUNC;
wfile = filp_open(collected, openflags, mode);