replica/updatedb was not happy with a proto file.  each proto line like this

                smtpd   a600    bootes  bootes  /tmp/empty

generated an error like this

        warning: can't stat file /tmp/empty/: '/tmp/empty/' not a directory

note the proto doesn't have a trailing /.  i think this change (already in 
revproto.c)
does the trick.  am i missing something?

/n/dump/2012/1227/sys/src/libdisk/proto.c:216,222 - 
/sys/src/libdisk/proto.c:212,219
                name->s = emalloc(mkaux, l+SLOP);
                name->n = l+SLOP;
        }
-       snprint(name->s, name->n, "%s%s%s", s1, s1[0]==0 || 
s1[strlen(s1)-1]!='/' ? "/" : "", s2);
+       snprint(name->s, name->n, "%s%s%s", s1, s2[0] && s2[0]!='/' ? "/" : "", 
s2);
  }
  
  static int

- erik

Reply via email to