Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 717794
Collapse All | Expand All

(-)netkit-rsh-0.17/rcp/rcp.c (-2 / +3 lines)
Lines 717-724 Link Here
717
			size = size * 10 + (*cp++ - '0');
717
			size = size * 10 + (*cp++ - '0');
718
		if (*cp++ != ' ')
718
		if (*cp++ != ' ')
719
			SCREWUP("size not delimited");
719
			SCREWUP("size not delimited");
720
		if ((strchr(cp, '/') != NULL) || (strcmp(cp, "..") == 0)) {
720
		if (*cp == '\0' || strchr(cp, '/') != NULL ||
721
			error("rcp: unexpected filename: %s", cp);
721
		    strcmp(cp, ".") == 0 || strcmp(cp, "..") == 0) {
722
			error("error: unexpected filename: %s", cp);
722
			exit(1);
723
			exit(1);
723
		}
724
		}
724
		if (targisdir) {
725
		if (targisdir) {

Return to bug 717794