On 24/08/07 ? ? 11:59, Denys Vlasenko wrote: > Hi people, > > I uploaded 1.7.0 earlier today. Enjoy.
[...] > * fdisk: make it work with big disks (read: typical today's disks) even > if CONFIG_LFS is unset No, the build fails if LFS is not enabled (my uClibc does not have lseek64). Attached patch fixes the problem. -- Stéphane Billiart http://perso.orange.fr/billiart/
diff -ruN busybox-1.7.0.orig/util-linux/fdisk.c busybox-1.7.0/util-linux/fdisk.c --- busybox-1.7.0.orig/util-linux/fdisk.c 2007-08-24 09:37:32.000000000 -0400 +++ busybox-1.7.0/util-linux/fdisk.c 2007-08-24 09:37:46.000000000 -0400 @@ -638,7 +638,11 @@ seek_sector(ullong secno) { secno *= sector_size; +#if ENABLE_LFS if (lseek64(fd, (off64_t)secno, SEEK_SET) == (off64_t) -1) +#else + if (lseek(fd, (off_t)secno, SEEK_SET) == (off_t) -1) +#endif fdisk_fatal(unable_to_seek); }
_______________________________________________ busybox mailing list busybox@busybox.net http://busybox.net/cgi-bin/mailman/listinfo/busybox