diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2008-02-02 21:49:48 +0000 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2008-02-02 21:49:48 +0000 |
commit | 1767962c45749739090b5f7f5a8fb037548505e0 (patch) | |
tree | 943ceb2eac43f7e66c18cc89e834ee784737fdb8 /package/busybox/busybox-1.9.0-mkswap.patch | |
parent | 25f6af28eeef3f3875f5b145779e1ae254536501 (diff) | |
download | buildroot-novena-1767962c45749739090b5f7f5a8fb037548505e0.tar.gz buildroot-novena-1767962c45749739090b5f7f5a8fb037548505e0.zip |
busybox: More 1.9.0 patches
Diffstat (limited to 'package/busybox/busybox-1.9.0-mkswap.patch')
-rw-r--r-- | package/busybox/busybox-1.9.0-mkswap.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/package/busybox/busybox-1.9.0-mkswap.patch b/package/busybox/busybox-1.9.0-mkswap.patch new file mode 100644 index 000000000..ac7e1ecc5 --- /dev/null +++ b/package/busybox/busybox-1.9.0-mkswap.patch @@ -0,0 +1,15 @@ +--- busybox-1.9.0/util-linux/mkswap.c Fri Dec 21 22:00:33 2007 ++++ busybox-1.9.0-mkswap/util-linux/mkswap.c Sat Feb 2 18:55:31 2008 +@@ -64,9 +64,10 @@ + // Figure out how big the device is and announce our intentions. + + fd = xopen(argv[1], O_RDWR); +- len = fdlength(fd); ++ len = lseek(fd, 0, SEEK_END); ++ lseek(fd, 0, SEEK_SET); + pagesize = getpagesize(); +- printf("Setting up swapspace version 1, size = %"OFF_FMT"d bytes\n", ++ printf("Setting up swapspace version 1, size = %"OFF_FMT"u bytes\n", + len - pagesize); + mkswap_selinux_setcontext(fd, argv[1]); + |