summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Black <dragonheart@gentoo.org>2009-05-10 22:29:53 +0000
committerDaniel Black <dragonheart@gentoo.org>2009-05-10 22:29:53 +0000
commitc4eac7bb3ce9b544cfd1c7ba4d66833a9edb4770 (patch)
tree5852dde2f2f4149fcdce8d80edf05f38d95f9967 /sys-power/suspend
parentNew version for GNOME 2.26. Clean up old revisions. (diff)
downloadhistorical-c4eac7bb3ce9b544cfd1c7ba4d66833a9edb4770.tar.gz
historical-c4eac7bb3ce9b544cfd1c7ba4d66833a9edb4770.tar.bz2
historical-c4eac7bb3ce9b544cfd1c7ba4d66833a9edb4770.zip
forgot patch
Package-Manager: portage-2.2_rc33/cvs/Linux x86_64
Diffstat (limited to 'sys-power/suspend')
-rw-r--r--sys-power/suspend/Manifest1
-rw-r--r--sys-power/suspend/files/suspend-overflow-gentoo.patch42
2 files changed, 43 insertions, 0 deletions
diff --git a/sys-power/suspend/Manifest b/sys-power/suspend/Manifest
index 1b8a03ff07b1..f8e2d9d80f22 100644
--- a/sys-power/suspend/Manifest
+++ b/sys-power/suspend/Manifest
@@ -1,3 +1,4 @@
+AUX suspend-overflow-gentoo.patch 1546 RMD160 998a9d59da92cac7410351c8f672e14e8317dfb6 SHA1 ad10780af2a772be738182f07139d57a8f4487b7 SHA256 7ca6a2c59947978cb55c2f6de115b38bed07b729c8dcfb9c191e1a43102846d9
DIST suspend-0.8.tar.gz 414135 RMD160 cd481fdb5206c824bf8138be0061bf98c0410f76 SHA1 acc9fb8f85d35f3e12c8406be1e958fc67ece01c SHA256 a5ee1dcfeb05e9c2a63583d7518065d42dc83264144359a2456fd8b9c71e63ee
EBUILD suspend-0.8-r1.ebuild 1228 RMD160 4f6b9dfab3487a69cdfa967141a3a07c7aa58a02 SHA1 eeca86e16b552015e9a2d3b7f2c171f0cc8bc1ee SHA256 f7c977409c9f969f066d609947d7ec6d0613aac24982b76441724c588a468b44
EBUILD suspend-0.8.ebuild 1070 RMD160 050240368b64bd00e51e63745416692ee8f07b70 SHA1 90efeced9486247e7be4ec5cb82024588ac46e3d SHA256 4b33c335b3e01b440f8583de36fd21604fd2b97ae9db55d28434da87b633a9ba
diff --git a/sys-power/suspend/files/suspend-overflow-gentoo.patch b/sys-power/suspend/files/suspend-overflow-gentoo.patch
new file mode 100644
index 000000000000..92bbd11f1b49
--- /dev/null
+++ b/sys-power/suspend/files/suspend-overflow-gentoo.patch
@@ -0,0 +1,42 @@
+diff -urNd suspend-0.8/resume.c suspend-0.8~/resume.c
+--- suspend-0.8/resume.c 2007-12-31 18:50:12.000000000 +0000
++++ suspend-0.8~/resume.c 2009-03-20 01:24:33.000000000 +0000
+@@ -550,7 +550,7 @@
+ struct swsusp_header *swsusp_header)
+ {
+ unsigned int size = sizeof(struct swsusp_header);
+- unsigned int shift = (resume_offset + 1) * page_size - size;
++ off_t shift = (resume_offset + 1) * page_size - size;
+ int fd, ret;
+
+ fd = open(resume_dev_name, O_RDWR);
+@@ -585,7 +585,7 @@
+ char *buffer = (char *)mem_pool + page_size;
+ unsigned int nr_pages = 0;
+ unsigned int size = sizeof(struct swsusp_header);
+- unsigned int shift = (resume_offset + 1) * page_size - size;
++ off_t shift = (resume_offset + 1) * page_size - size;
+ char c;
+
+ error = read_area(fd, header, swsusp_header->image, page_size);
+diff -urNd suspend-0.8/suspend.c suspend-0.8~/suspend.c
+--- suspend-0.8/suspend.c 2007-12-31 18:50:12.000000000 +0000
++++ suspend-0.8~/suspend.c 2009-03-20 01:24:11.000000000 +0000
+@@ -587,7 +587,7 @@
+ {
+ int error = 0;
+ unsigned int size = sizeof(struct swsusp_header);
+- unsigned int shift = (resume_offset + 1) * page_size - size;
++ off_t shift = (resume_offset + 1) * page_size - size;
+
+ if (lseek(fd, shift, SEEK_SET) != shift)
+ return -EIO;
+@@ -757,7 +757,7 @@
+ {
+ int ret, error = 0;
+ unsigned int size = sizeof(struct swsusp_header);
+- unsigned int shift = (resume_offset + 1) * page_size - size;
++ off_t shift = (resume_offset + 1) * page_size - size;
+
+ if (lseek(fd, shift, SEEK_SET) != shift)
+ return -EIO;