9fans archive / 1996 / 09 / 47 /    prev next

From: Boyd Roberts boyd@fra...
Subject: bug in diff.b [inferno]
Date: Mon, 23 Sep 1996 10:56:12 +0200

i've found a bug in /appl/cmd/diff.b.  rob says it's a hangover from
where it was ported and the offending stuff should be removed.  the
other thing to note is that the '95 installshield doesn't create
/tmp, which diff is kind of attached to.

    $ diff file1 file2

doesn't work.  this fixes it:

709c709
<       return (s.dtype == 'M' && !(s.qid.path&Sys->CHDIR));
---
>       return !(s.qid.path&Sys->CHDIR);
788c788
<               if (fsb.dtype == 'M' && !(fsb.qid.path&Sys->CHDIR)) {
---
>               if (!(fsb.qid.path&Sys->CHDIR)) {