diff options
Diffstat (limited to 'util-linux/fdisk_sun.c')
-rw-r--r-- | util-linux/fdisk_sun.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/util-linux/fdisk_sun.c b/util-linux/fdisk_sun.c index eec319c..427efbe 100644 --- a/util-linux/fdisk_sun.c +++ b/util-linux/fdisk_sun.c @@ -722,9 +722,6 @@ sun_write_table(void) while (ush < (unsigned short *)(&sunlabel->csum)) csum ^= *ush++; sunlabel->csum = csum; - if (lseek(dev_fd, 0, SEEK_SET) < 0) - fdisk_fatal(unable_to_seek); - if (write(dev_fd, sunlabel, SECTOR_SIZE) != SECTOR_SIZE) - fdisk_fatal(unable_to_write); + write_sector(0, sunlabel); } #endif /* SUN_LABEL */ |