From 9198c75230bfbf1bef008e73f0163b2884312b5a Mon Sep 17 00:00:00 2001 From: marcus Date: Sat, 15 Mar 2008 18:32:13 +0000 Subject: Update to 0.5.11 RC1. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@10744 df743ca5-7f9a-e211-a948-0013205c9059 --- sysutils/hal/files/patch-hald_freebsd_hf-util.c | 32 +++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 sysutils/hal/files/patch-hald_freebsd_hf-util.c (limited to 'sysutils/hal/files/patch-hald_freebsd_hf-util.c') diff --git a/sysutils/hal/files/patch-hald_freebsd_hf-util.c b/sysutils/hal/files/patch-hald_freebsd_hf-util.c new file mode 100644 index 000000000..0d09ad3ae --- /dev/null +++ b/sysutils/hal/files/patch-hald_freebsd_hf-util.c @@ -0,0 +1,32 @@ +--- hald/freebsd/hf-util.c.orig 2008-03-15 14:27:25.000000000 -0400 ++++ hald/freebsd/hf-util.c 2008-03-15 14:27:29.000000000 -0400 +@@ -263,7 +263,7 @@ hf_device_set_udi (HalDevice *device, co + udi = g_strdup_vprintf(format, args); + va_end(args); + +- safe_str = hf_str_no_slashes(udi); ++ safe_str = hf_str_escape(udi); + g_free(udi); + + hf_device_set_full_udi(device, "/org/freedesktop/Hal/devices/%s", safe_str); +@@ -675,14 +675,18 @@ hf_device_store_match (HalDeviceStore *s + } + + char * +-hf_str_no_slashes (const char *str) ++hf_str_escape (const char *str) + { + char *safe_str; + + g_return_val_if_fail(str != NULL, NULL); + + safe_str = g_strdup(str); +- safe_str = g_strdelimit(safe_str, "/", '_'); ++ g_strcanon(safe_str, ++ "_" ++ "abcdefghijklmnopqrstuvwxyz" ++ "ABCDEFGHIJKLMNOPQRSTUVWXYZ" ++ "1234567890", '_'); + + return safe_str; + } -- cgit v1.2.3