View | Details | Raw Unified | Return to bug 117277
Collapse All | Expand All

(-)usr.bin/fetch/fetch.c (-2 / +5 lines)
Lines 488-495 Link Here
488
	if (o_stdout) {
488
	if (o_stdout) {
489
		/* output to stdout */
489
		/* output to stdout */
490
		of = stdout;
490
		of = stdout;
491
	} else if (r_flag && sb.st_size != -1) {
491
	} else if (r_flag && sb.st_size != -1 && url->offset) {
492
		/* resume mode, local file exists */
492
		/*
493
		 * resume mode, local file exists and we
494
		 * actually received partial content as requested
495
		 */
493
		if (!F_flag && us.mtime && sb.st_mtime != us.mtime) {
496
		if (!F_flag && us.mtime && sb.st_mtime != us.mtime) {
494
			/* no match! have to refetch */
497
			/* no match! have to refetch */
495
			fclose(f);
498
			fclose(f);

Return to bug 117277