chris@umcp-cs.UUCP (06/17/83)
Oops, seems a bug crept into my makescript program. Here's the problem,
and the fix.
Problem:
makescript foo File_Without_Leading_Slash
generates an error about "can't change to directory /usr/foo
". This is because there's a newline left in the directory returned
by /bin/pwd.
Fix:
add (after the first fread call) the two lines
if (WDir[0])
WDir[strlen (WDir) - 1] = 0;
and the problem should go away.
- Chris
--
UUCP: {seismo,allegra,brl-bmd}!umcp-cs!chris
CSNet: chris@umcp-cs
ARPA: chris.umcp-cs@UDel-Relay