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

(-)a/scp.c (-2 / +9 lines)
Lines 1482-1489 sink(int argc, char **argv, const char *src) Link Here
1482
				if (fnmatch(patterns[n], cp, 0) == 0)
1482
				if (fnmatch(patterns[n], cp, 0) == 0)
1483
					break;
1483
					break;
1484
			}
1484
			}
1485
			if (n >= npatterns)
1485
			if (n >= npatterns) {
1486
				if (verbose_mode) {
1487
					fprintf(stderr, "expected filenames:\n");
1488
					for (n = 0; n < npatterns; n++)
1489
						fprintf(stderr, "  \"%s\"\n", patterns[n]);
1490
					fprintf(stderr, "incoming filename:\n");
1491
					fprintf(stderr, "  \"%s\"\n", cp);
1492
				}
1486
				SCREWUP("filename does not match request");
1493
				SCREWUP("filename does not match request");
1494
			}
1487
		}
1495
		}
1488
		if (targisdir) {
1496
		if (targisdir) {
1489
			static char *namebuf;
1497
			static char *namebuf;
1490
- 

Return to bug 2966