summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/klibc-udev/vol_id-suspend2.patch
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core-testing/klibc-udev/vol_id-suspend2.patch')
-rw-r--r--abs/core-testing/klibc-udev/vol_id-suspend2.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/abs/core-testing/klibc-udev/vol_id-suspend2.patch b/abs/core-testing/klibc-udev/vol_id-suspend2.patch
new file mode 100644
index 0000000..525e17e
--- /dev/null
+++ b/abs/core-testing/klibc-udev/vol_id-suspend2.patch
@@ -0,0 +1,15 @@
+diff -Nur udev-103.orig/extras/volume_id/lib/linux_swap.c udev-103/extras/volume_id/lib/linux_swap.c
+--- udev-103.orig/extras/volume_id/lib/linux_swap.c 2006-10-20 14:43:35.000000000 +0200
++++ udev-103/extras/volume_id/lib/linux_swap.c 2006-10-29 17:15:19.000000000 +0100
+@@ -73,6 +73,11 @@
+ strcpy(id->type_version, "ulsuspend");
+ goto found_label;
+ }
++ if (memcmp(buf, "z", 1) == 0 || memcmp(buf, "Z", 1) == 0) {
++ id->type = "suspend";
++ strcpy(id->type_version, "suspend2");
++ goto found_label;
++ }
+ }
+ return -1;
+