Commit a7380b60 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] missing padding in cpio_mkfile in usr/gen_init_cpio.c

From: Olaf Hering <olh@suse.de>

We need to update `offset' here so that the subsequent push_pad() (which
uses `offset') will do the right thing.
parent a5c9613f
......@@ -197,6 +197,7 @@ void cpio_mkfile(const char *filename, const char *location,
for (i = 0; i < buf.st_size; ++i)
fputc(filebuf[i], stdout);
offset += buf.st_size;
close(file);
free(filebuf);
push_pad();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment