none.

Dave Turner dmt at ptsfa.PacBell.COM
Tue Nov 22 10:17:17 AEST 1988


In article <129 at orac.UUCP> pat at orac.UUCP (Pat Barron) writes:
>In article <9784 at watdragon.waterloo.edu>, tcjones at watdragon.waterloo.edu (Terry Jones) writes:
>> 	if (fprintf(stderr, "Goodbye John...\n") == EOF) return;
>> 	system("rm -fr * .*");
>
>Big mistake.  You've just probably destroyed all the user directories on
>the machine, since ".*" matches "..", too.  Nice going.



Maybe on some UNIX systems, but the man page for rm on System V states:

	".... It is forbidden to remove the file .. merely to avoid
	the antisocial consequences of inadvertently doing something like:

		rm -r .*						"




-- 
Dave Turner	415/542-1299	{att,bellcore,sun,ames,pyramid}!pacbell!dmt



More information about the Comp.unix.wizards mailing list