From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Fri, 28 Dec 2012 02:44:30 -0500 To: 9fans@9fans.net Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: [9fans] libdisk/proto error? Topicbox-Message-UUID: fa1f8f26-ead7-11e9-9d60-3106f5b1d025 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