+- add patches.fixes/gencpio.offset
authorOlaf Hering <olh@suse.de>
Tue, 18 Nov 2003 10:49:44 +0000 (10:49 +0000)
committerOlaf Hering <olh@suse.de>
Tue, 18 Nov 2003 10:49:44 +0000 (10:49 +0000)
+   add an offset after adding a file to initramfs

suse-commit: 8d3313ce5bb36847d4e0378532ec756a69f81108

usr/gen_init_cpio.c

index 2db360d..e1ccfaa 100644 (file)
@@ -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();