Fix writeisofs lseek() usage (Bug#311, reported by John Peace
This commit is contained in:
parent
b7ac32bfa4
commit
2ac8124914
1 changed files with 2 additions and 2 deletions
|
@ -1072,7 +1072,7 @@ int get_system_type(int fd)
|
|||
unsigned char bootsector[512];
|
||||
|
||||
errno= 0;
|
||||
old_pos= lseek(fd, SEEK_SET, 0);
|
||||
old_pos= lseek(fd, 0, SEEK_SET);
|
||||
if (old_pos == -1 && errno != 0)
|
||||
{
|
||||
fprintf(stderr, "bootimage file is not seekable: %s\n",
|
||||
|
@ -1106,6 +1106,6 @@ int get_system_type(int fd)
|
|||
exit(1);
|
||||
}
|
||||
|
||||
lseek(fd, SEEK_SET, old_pos);
|
||||
lseek(fd, old_pos, SEEK_SET);
|
||||
return type;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue