fetch.c (106043) | fetch.c (106051) |
---|---|
1/*- 2 * Copyright (c) 2000 Dag-Erling Co�dan Sm�rgrav 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 13 unchanged lines hidden (view full) --- 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2000 Dag-Erling Co�dan Sm�rgrav 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 13 unchanged lines hidden (view full) --- 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29#include <sys/cdefs.h> |
30__FBSDID("$FreeBSD: head/usr.bin/fetch/fetch.c 106043 2002-10-27 15:32:51Z des $"); | 30__FBSDID("$FreeBSD: head/usr.bin/fetch/fetch.c 106051 2002-10-27 17:33:08Z des $"); |
31 32#include <sys/param.h> 33#include <sys/socket.h> 34#include <sys/stat.h> 35#include <sys/time.h> 36 37#include <ctype.h> 38#include <err.h> --- 375 unchanged lines hidden (view full) --- 414 if (l_flag && strcmp(url->scheme, "file") == 0 && !o_stdout) { 415 if (symlink(url->doc, path) == -1) { 416 warn("%s: symlink()", path); 417 goto failure; 418 } 419 goto success; 420 } 421 | 31 32#include <sys/param.h> 33#include <sys/socket.h> 34#include <sys/stat.h> 35#include <sys/time.h> 36 37#include <ctype.h> 38#include <err.h> --- 375 unchanged lines hidden (view full) --- 414 if (l_flag && strcmp(url->scheme, "file") == 0 && !o_stdout) { 415 if (symlink(url->doc, path) == -1) { 416 warn("%s: symlink()", path); 417 goto failure; 418 } 419 goto success; 420 } 421 |
422 if (us.size == -1 && !o_stdout) | 422 if (us.size == -1 && !o_stdout && v_level > 0) |
423 warnx("%s: size of remote file is not known", path); 424 if (v_level > 1) { 425 if (sb.st_size != -1) 426 fprintf(stderr, "local size / mtime: %lld / %ld\n", 427 (long long)sb.st_size, (long)sb.st_mtime); 428 if (us.size != -1) 429 fprintf(stderr, "remote size / mtime: %lld / %ld\n", 430 (long long)us.size, (long)us.mtime); --- 489 unchanged lines hidden --- | 423 warnx("%s: size of remote file is not known", path); 424 if (v_level > 1) { 425 if (sb.st_size != -1) 426 fprintf(stderr, "local size / mtime: %lld / %ld\n", 427 (long long)sb.st_size, (long)sb.st_mtime); 428 if (us.size != -1) 429 fprintf(stderr, "remote size / mtime: %lld / %ld\n", 430 (long long)us.size, (long)us.mtime); --- 489 unchanged lines hidden --- |