projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'perf-fixes-for-linus-2' of git://git.kernel.org/pub/scm/linux/kernel...
[deliverable/linux.git]
/
usr
/
gen_init_cpio.c
diff --git
a/usr/gen_init_cpio.c
b/usr/gen_init_cpio.c
index 83b3dde1a83b74a5f1e75cb2d98a44787e33bca2..b2b3c2d1cf8bd37849d92b9a1d06131f1cf14f96 100644
(file)
--- a/
usr/gen_init_cpio.c
+++ b/
usr/gen_init_cpio.c
@@
-354,7
+354,10
@@
static int cpio_mkfile(const char *name, const char *location,
push_pad();
if (size) {
- fwrite(filebuf, size, 1, stdout);
+ if (fwrite(filebuf, size, 1, stdout) != 1) {
+ fprintf(stderr, "writing filebuf failed\n");
+ goto error;
+ }
offset += size;
push_pad();
}
This page took
0.023259 seconds
and
5
git commands to generate.