aboutsummaryrefslogtreecommitdiff
path: root/src/librc/librc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/librc/librc.c')
-rw-r--r--src/librc/librc.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/librc/librc.c b/src/librc/librc.c
index 16b0f0b7..c6280d15 100644
--- a/src/librc/librc.c
+++ b/src/librc/librc.c
@@ -207,8 +207,11 @@ const char *rc_sys (void)
} else if (file_regex ("/proc/cpuinfo", "UML"))
return (RC_SYS_UML);
else if (file_regex ("/proc/self/status",
- "(s_context|VxID|envID):[[:space:]]*[1-9]"))
- return (RC_SYS_VPS);
+ "(s_context|VxID):[[:space:]]*[1-9]"))
+ return (RC_SYS_VSERVER);
+ else if (file_regex ("/proc/self/status",
+ "envID:[[:space:]]*[1-9]"))
+ return (RC_SYS_OPENVZ);
#endif
return (NULL);