mv bug

utzoo!decvax!harpo!floyd!cmcl2!salkind utzoo!decvax!harpo!floyd!cmcl2!salkind
Tue Sep 7 23:44:21 AEST 1982


In the routine mvdir(), change:

		strcat(dst, target);		<< change this line >>
  		strcat(dst, "/");
  		strcat(dst, DOTDOT);
to
		strcpy(dst, target);
  		strcat(dst, "/");
  		strcat(dst, DOTDOT);

This causes a mv of directories to possibly fail (since dst is
allocated space on the stack).

This bug also exists on v7 systems.

	Lou Salkind



More information about the Comp.bugs.4bsd.ucb-fixes mailing list