Coda File System

Bug report: Underscore in username kills pcfgen

From: Stuart Herbert <S.Herbert_at_sheffield.ac.uk>
Date: Sat, 6 Mar 1999 12:21:34 -0000
Hi there!

I'd like to report a bug in CODA 5.0.3.

My CODA administrator user is called 'coda_adm'.  When you use pcfgen to
turn vice.pdb into vice.pcf, pcfgen core dumps with the error "syntax
error".  A "where" on the coredump shows:

(gdb) where
#0  0x4002b811 in __kill ()
#1  0x4002b63f in raise (sig=6) at ../sysdeps/posix/raise.c:27
#2  0x4992c84f in abort () at ../sysdeps/generic/abort.c:83
#3  0x804cbf5 in yyerror (s=0x8050141 "syntax error") at
parsepdb.yacc:291
#4  0x804e2c3 in yyparse () at y.tab.c:440
#5  0x8049358 in main (argc=2, argv=0xbffffd94) at pcfgen.c:161

Username is defined as an IDENTIFIER, which in turn is defined as

	[A-Za-z][A-Za-z0-9]*

in parsepdb.lex (line 87).  Unfortunately, my copy of POSIX.1 fails to
define the valid range of a username, but as I'm able to create users
with underscores in their name, it only seems reasonable that CODA
should support this ;-)

Best regards,
Stu
Received on 1999-03-06 07:17:59