correction to previous posting: pwd.c

fred at umcp-cs.UUCP fred at umcp-cs.UUCP
Wed Aug 10 05:27:23 AEST 1983


The version of ``pwd'' which I posted to net.sources a couple
of weeks ago had a bug, which was discovered by qumix!dennis.
It wouldn't print anything when run in the root directory.
To fix it, change the routine ``prname'' to:

	prname()
	{
		if (*np)
			printf("%s\n", np);
		else
			printf("/\n");
		exit(0);
	}

Sorry about that folks.

		Fred Blonder
		harpo!seismo!umcp-cs!fred
		fred.umcp-cs at UDel-Relay



More information about the Comp.sources.unix mailing list