From: Enrico Scholz Date: Sun, 23 Oct 2005 22:55:12 +0000 (+0000) Subject: testInternal(): fixed return value for non-existing files X-Git-Tag: version_0_30_210~107 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5866cc8a4d13c2bf4527d81e88e14c7932737b19;p=util-vserver.git testInternal(): fixed return value for non-existing files git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2174 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- diff --git a/util-vserver/src/chroot-sh.c b/util-vserver/src/chroot-sh.c index fcd2fc1..b26eb93 100644 --- a/util-vserver/src/chroot-sh.c +++ b/util-vserver/src/chroot-sh.c @@ -85,7 +85,7 @@ testInternal(int argc, char *argv[], char const *operation) return wrapper_exit_code; } - if (stat(argv[1], &st)==-1) return 0; + if (stat(argv[1], &st)==-1) return -1; else return st.st_mode; }