|
giva: curl/tests/libtest lib505.c,1.8,1.9: msg#00036web.curl.cvs
Update of /cvsroot/curl/curl/tests/libtest In directory labb:/tmp/cvs-serv6591 Modified Files: lib505.c Log Message: Needs 'struct_stat'. Increased verbosity. Index: lib505.c =================================================================== RCS file: /cvsroot/curl/curl/tests/libtest/lib505.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- lib505.c 27 May 2005 11:01:41 -0000 1.8 +++ lib505.c 28 Jul 2005 13:20:27 -0000 1.9 @@ -8,6 +8,7 @@ * $Id$ */ +#include "setup.h" /* struct_stat etc. */ #include "test.h" #ifdef HAVE_SYS_SOCKET_H @@ -46,10 +47,16 @@ const char *buf_1 = "RNFR 505"; const char *buf_2 = "RNTO 505-forreal"; + if (!arg2) { + fprintf(stderr, "Usage: <url> <file-to-upload>\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; } _______________________________________________ http://cool.haxx.se/mailman/listinfo/curl-commits |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | bagder: curl CHANGES,1.731,1.732 RELEASE-NOTES,1.269,1.270: 00036, cvs |
|---|---|
| Next by Date: | bagder: curl/lib cookie.c,1.70,1.71: 00036, cvs |
| Previous by Thread: | bagder: curl CHANGES,1.731,1.732 RELEASE-NOTES,1.269,1.270i: 00036, cvs |
| Next by Thread: | bagder: curl/lib cookie.c,1.70,1.71: 00036, cvs |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |