From dd33c7a0acf81543b6f89b7ccfa4e98e615211b6 Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Fri, 20 Feb 2004 16:57:38 +0000 Subject: [PATCH] use more extensive errormessages do not do the lo-check anymore git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@964 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- util-vserver/src/chbind.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/util-vserver/src/chbind.c b/util-vserver/src/chbind.c index 90bf13c..0f2bac2 100644 --- a/util-vserver/src/chbind.c +++ b/util-vserver/src/chbind.c @@ -38,6 +38,7 @@ #include #include +#define ENSC_WRAPPERS_PREFIX "chbind: " #define ENSC_WRAPPERS_IO 1 #define ENSC_WRAPPERS_UNISTD 1 #include "wrappers.h" @@ -276,7 +277,7 @@ int main (int argc, char *argv[]) if (vc_set_ipv4root(bcast,nbaddrs,ips)!=0) { - perror("vc_set_ipv4root()"); + perror("chbind: vc_set_ipv4root()"); exit(wrapper_exit_code); } @@ -317,9 +318,11 @@ void test() readIP("localhost", &ip, &bcast); assert(ip.ip==ntohl(0x7f000001) && ip.mask==ntohl(0xffffff00) && bcast==0); +#if 0 if (ifconfig_getaddr("lo", &tmp, &tmp, &tmp)!=-1) { readIP("lo", &ip, &bcast); assert(ip.ip==ntohl(0x7f000001) && ip.mask==ntohl(0xff000000) && bcast==ntohl(0x7fffffff)); } +#endif } #endif -- 1.8.1.5