X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=util-vserver%2Fsrc%2Fvserver-stat.c;h=17425c1d9f7a02106e9753e00f155e4f76c1f041;hb=2c153db573d5648ba62d29ae6f8eed6a87b8c9c4;hp=d8ee389826de1af7e092058d1d6f869df65a1627;hpb=ae53d976e97aafa6640133059a4bc5fec069a393;p=util-vserver.git diff --git a/util-vserver/src/vserver-stat.c b/util-vserver/src/vserver-stat.c index d8ee389..17425c1 100644 --- a/util-vserver/src/vserver-stat.c +++ b/util-vserver/src/vserver-stat.c @@ -493,6 +493,12 @@ int main(int argc, char **argv) exit(1); } + if (access("/proc/uptime",R_OK)==-1 && errno==ENOENT) + WRITE_MSG(2, + "WARNING: can not access /proc/uptime. Usually, this is caused by\n" + " procfs-security. Please read the FAQ for more details\n" + " http://www.linux-vserver.org/index.php?page=Linux-Vserver+FAQ\n"); + Vector_init(&xid_data, sizeof(struct XidData)); Echdir(PROC_DIR_NAME);