diff options
author | Roy Marples <roy@marples.name> | 2008-03-03 17:22:01 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-03-03 17:22:01 +0000 |
commit | e55cb5dd5b9e222aecc28961f6459e0c370c5796 (patch) | |
tree | 82610840e9338cf1f6ade19f569ee9bee30ba817 /src/rc | |
parent | 15cf41e7131cebbb74241180f36f59384c7a0477 (diff) |
Fix compile on Linux.
Diffstat (limited to 'src/rc')
-rw-r--r-- | src/rc/rc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rc/rc.c b/src/rc/rc.c index e1b7ac3d..090d9271 100644 --- a/src/rc/rc.c +++ b/src/rc/rc.c @@ -287,10 +287,10 @@ static void sulogin (bool cont) sigset_t old; pid_t pid; #ifdef __linux__ - char *e = getenv ("RC_SYS"); + const char *sys = rc_sys (); /* VSERVER and OPENVZ systems cannot do a sulogin */ - if (e && (strcmp (e, "VSERVER") == 0 || strcmp (e, "OPENVZ") == 0) { + if (sys && (strcmp (sys, "VSERVER") == 0 || strcmp (sys, "OPENVZ") == 0)) { execl ("/sbin/halt", "/sbin/halt", "-f", (char *) NULL); eerrorx ("%s: unable to exec `/sbin/halt': %s", applet, strerror (errno)); } |