Initial commit: Uploaded everything from abs/core
[arch-rock.git] / base / klibc-udev / vol_id-suspend2.patch
blob525e17e9ebd0167eabbd6c8a2b13e622cabb327e
1 diff -Nur udev-103.orig/extras/volume_id/lib/linux_swap.c udev-103/extras/volume_id/lib/linux_swap.c
2 --- udev-103.orig/extras/volume_id/lib/linux_swap.c 2006-10-20 14:43:35.000000000 +0200
3 +++ udev-103/extras/volume_id/lib/linux_swap.c 2006-10-29 17:15:19.000000000 +0100
4 @@ -73,6 +73,11 @@
5 strcpy(id->type_version, "ulsuspend");
6 goto found_label;
8 + if (memcmp(buf, "z", 1) == 0 || memcmp(buf, "Z", 1) == 0) {
9 + id->type = "suspend";
10 + strcpy(id->type_version, "suspend2");
11 + goto found_label;
12 + }
14 return -1;