Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 128750 Details for
Bug 189686
baselayout-2.0.0_rc3-r1 vserver: "failed to open `/proc/cmdline'"
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
baselayout-2.0.0_rc3 vserver /proc/cmdline patch
baselayout-2.0.0_rc3-cmdline-vps.patch (text/plain), 721 bytes, created by
Christian Affolter
on 2007-08-21 10:29:47 UTC
(
hide
)
Description:
baselayout-2.0.0_rc3 vserver /proc/cmdline patch
Filename:
MIME Type:
Creator:
Christian Affolter
Created:
2007-08-21 10:29:47 UTC
Size:
721 bytes
patch
obsolete
>diff -urN baselayout-2.0.0_rc3.orig/src/rc.c baselayout-2.0.0_rc3/src/rc.c >--- baselayout-2.0.0_rc3.orig/src/rc.c 2007-08-17 14:14:04.000000000 +0200 >+++ baselayout-2.0.0_rc3/src/rc.c 2007-08-21 11:46:10.688415000 +0200 >@@ -378,7 +378,14 @@ > char *p; > char *value = NULL; > int i; >- >+ >+ char *rc_sys = getenv ("RC_SYS"); >+ >+ /* VPS systems don't have a /proc/cmdline */ >+ if (rc_sys && strcmp (rc_sys, "VPS") == 0) { >+ return (NULL); >+ } >+ > if (! (fp = fopen ("/proc/cmdline", "r"))) { > eerror ("failed to open `/proc/cmdline': %s", strerror (errno)); > return (NULL);
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 189686
: 128750 |
128752