Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site umcp-cs.UUCP Path: utzoo!linus!philabs!seismo!rlgvax!cvl!umcp-cs!fred From: fred@umcp-cs.UUCP Newsgroups: net.sources Subject: correction to previous posting: pwd.c Message-ID: <1673@umcp-cs.UUCP> Date: Tue, 9-Aug-83 15:27:23 EDT Article-I.D.: umcp-cs.1673 Posted: Tue Aug 9 15:27:23 1983 Date-Received: Fri, 12-Aug-83 10:55:34 EDT Organization: Univ. of Maryland, Computer Science Dept. Lines: 20 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@UDel-Relay