From: Gisle Vanem Date: Thu, 28 Jul 2005 13:20:27 +0000 (+0000) Subject: Needs 'struct_stat'. Increased verbosity. X-Git-Tag: upstream/7.37.1~11031 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=34a827bbfe6f10588ead48f2bb9721c6c927ec89;p=platform%2Fupstream%2Fcurl.git Needs 'struct_stat'. Increased verbosity. --- diff --git a/tests/libtest/lib505.c b/tests/libtest/lib505.c index 1487781..dc82e2d 100644 --- a/tests/libtest/lib505.c +++ b/tests/libtest/lib505.c @@ -8,6 +8,7 @@ * $Id$ */ +#include "setup.h" /* struct_stat etc. */ #include "test.h" #ifdef HAVE_SYS_SOCKET_H @@ -46,10 +47,16 @@ int test(char *URL) const char *buf_1 = "RNFR 505"; const char *buf_2 = "RNTO 505-forreal"; + if (!arg2) { + fprintf(stderr, "Usage: \n"); + return -1; + } + /* get the file size of the local file */ hd = stat(arg2, &file_info); if(hd == -1) { /* can't open file, bail out */ + fprintf(stderr, "WARNING: cannot open file %s\n", arg2); return -1; }