diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2008-03-16 02:32:13 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2008-03-16 02:32:13 +0800 |
commit | 9198c75230bfbf1bef008e73f0163b2884312b5a (patch) | |
tree | cc1fa28674ffd638fe6970759fa458664cd02986 /sysutils/hal/files/patch-hald_freebsd_hf-util.c | |
parent | 4167191e258addfc88704661fe6b50ccadc5beb8 (diff) | |
download | marcuscom-ports-9198c75230bfbf1bef008e73f0163b2884312b5a.tar marcuscom-ports-9198c75230bfbf1bef008e73f0163b2884312b5a.tar.gz marcuscom-ports-9198c75230bfbf1bef008e73f0163b2884312b5a.tar.bz2 marcuscom-ports-9198c75230bfbf1bef008e73f0163b2884312b5a.tar.lz marcuscom-ports-9198c75230bfbf1bef008e73f0163b2884312b5a.tar.xz marcuscom-ports-9198c75230bfbf1bef008e73f0163b2884312b5a.tar.zst marcuscom-ports-9198c75230bfbf1bef008e73f0163b2884312b5a.zip |
Update to 0.5.11 RC1.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@10744 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'sysutils/hal/files/patch-hald_freebsd_hf-util.c')
-rw-r--r-- | sysutils/hal/files/patch-hald_freebsd_hf-util.c | 32 |
1 files changed, 32 insertions, 0 deletions
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; + } |