Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 164676 Details for
Bug 236635
sys-fs/udev-{126,127} breaks sys-apps/hal-0.5.11-r2 disk detection
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to remove slash at beginning of path
udev-remove-slash-127.patch (text/plain), 1001 bytes, created by
gfl3162+gbugzilla
on 2008-09-06 01:01:49 UTC
(
hide
)
Description:
Patch to remove slash at beginning of path
Filename:
MIME Type:
Creator:
gfl3162+gbugzilla
Created:
2008-09-06 01:01:49 UTC
Size:
1001 bytes
patch
obsolete
>diff -ru udev-127-old/udev/udev_config.c udev-127/udev/udev_config.c >--- udev-127-old/udev/udev_config.c 2008-09-05 17:54:29.774209721 -0700 >+++ udev-127/udev/udev_config.c 2008-09-05 17:54:35.130458291 -0700 >@@ -188,6 +188,7 @@ > strlcpy(udev_root, env, sizeof(udev_root)); > remove_trailing_chars(udev_root, '/'); > } >+ strip_two_slashes(udev_root); > > env = getenv("UDEV_LOG"); > if (env) >diff -ru udev-127-old/udev/udev_utils_string.c udev-127/udev/udev_utils_string.c >--- udev-127-old/udev/udev_utils_string.c 2008-09-05 17:54:29.764211583 -0700 >+++ udev-127/udev/udev_utils_string.c 2008-09-05 17:54:35.130458291 -0700 >@@ -51,6 +51,21 @@ > path[--len] = '\0'; > } > >+void strip_two_slashes(char *path) >+{ >+ if (path[0] == '/' && path[1] == '/') >+ { >+ char newpath[strlen(path) - 1]; >+ int len2 = 0; >+ while (len2 < strlen(path)) >+ { >+ newpath[len2] = path[len2 + 1]; >+ len2++; >+ } >+ strcpy(path, newpath); >+ } >+} >+ > size_t path_encode(char *s, size_t len) > { > char t[(len * 3)+1];
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 236635
: 164676 |
164680