X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=util-vserver%2Ftests%2Fchrootsafe.cc;h=18ba38e7dd18471f32304f8ec3e97a270ab4fd24;hb=d97beaa2d2cbc77035a6df13488e457c7e21b9a3;hp=eac461d0f360d7e3a318dd4be73519d3026cabea;hpb=f2e3d30d83c8b99fddddd7b671bad25471113afe;p=util-vserver.git diff --git a/util-vserver/tests/chrootsafe.cc b/util-vserver/tests/chrootsafe.cc index eac461d..18ba38e 100644 --- a/util-vserver/tests/chrootsafe.cc +++ b/util-vserver/tests/chrootsafe.cc @@ -23,6 +23,11 @@ chrootsafe /vservers/test */ +#ifdef HAVE_CONFIG_H +# include +#endif +#include "compat.h" + #include #include #include @@ -39,7 +44,7 @@ int main (int argc, char *argv[]) // This test must fail int fd = open ("/",O_RDONLY); if (fd != -1){ - if (call_chrootsafe(argv[1])==-1){ + if (vc_chrootsafe(argv[1])==-1){ fprintf (stderr,"Ok, chrootsafe failed with one open directory errno=%s\n",strerror(errno)); }else{ fprintf (stderr,"Hum, chrootsafe succeed with one open directory\n"); @@ -48,7 +53,7 @@ int main (int argc, char *argv[]) close (fd); } // Now it should work - if (call_chrootsafe(argv[1])!=-1){ + if (vc_chrootsafe(argv[1])!=-1){ fprintf (stderr,"Ok, chrootsafe worked\n"); system ("/bin/sh"); }else{