]> Zhao Yanbai Git Server - minix.git/commitdiff
writeisofs: set file struct version field to one 55/2755/3
authorDavid van Moolenbroek <david@minix3.org>
Sat, 23 Aug 2014 18:55:44 +0000 (18:55 +0000)
committerDavid van Moolenbroek <david@minix3.org>
Thu, 18 Sep 2014 12:46:29 +0000 (12:46 +0000)
Dictated by the spec and correctly flagged by the new isofs code.

Change-Id: Ie155c30b6a53e40ec42066af0adbcdbf457e5620

minix/commands/writeisofs/writeisofs.c

index 4df404799075a58899bd91ab256857fdd50413cc..033b519718ffc6e852a62105f9661eb5267d4b26 100644 (file)
@@ -833,7 +833,7 @@ writebootimage(char *bootimage, int bootfd, int fd, int *currentsector,
                        exit(1);
                }
 
-               fprintf(stderr, " * appended sector info: 0x%x len 0x%x\n",
+               fprintf(stderr, " * appended sector info: 0x%llx len 0x%x\n",
                        bap[0].sector, bap[0].length);
 
                addr = buf;
@@ -1063,6 +1063,7 @@ main(int argc, char *argv[])
        memcpy(pvd.modified, timestr, strlen(timestr));
        memcpy(pvd.effective, timestr, strlen(timestr));
        strcpy(pvd.expiry, "0000000000000000"); /* not specified */
+       pvd.one2 = 1;
        pvdsector = currentsector;
 
        writesector(fd, (char *) &pvd, &currentsector);