diff options
| author | Andrew Morton <akpm@osdl.org> | 2003-12-29 05:46:56 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.osdl.org> | 2003-12-29 05:46:56 -0800 |
| commit | a7380b60b3bf457322551168f97c845257f544dd (patch) | |
| tree | 7a1c8c69372247663725a24900d2072e47fe694f | |
| parent | a5c9613f0b9a0a29db804c6194989f3b87ca361a (diff) | |
[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.
| -rw-r--r-- | usr/gen_init_cpio.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr/gen_init_cpio.c b/usr/gen_init_cpio.c index 2db360dd901a..e1ccfaa84caa 100644 --- a/usr/gen_init_cpio.c +++ b/usr/gen_init_cpio.c @@ -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(); |
