[7726] in Athena Bugs
decmips 7.2R: shell length restriction in moira
daemon@ATHENA.MIT.EDU (Barr3y Jaspan)
Tue Jul 9 18:57:23 1991
To: bugs@ATHENA.MIT.EDU
Date: Tue, 09 Jul 91 18:57:24 EDT
From: "Barr3y Jaspan" <bjaspan@ATHENA.MIT.EDU>
System name: podge
Type and version: KN01 7.2R (1 update(s) to same version)
Display type: PM-MONO
What were you trying to do?
Change my shell to /afs/.athena/contrib/sipb/bin/tcsh
What's wrong:
(1) Moira restricts shell names to 32 characters. Does Unix? I tried
that shell name on an RT and it worked fine. This seems to fall under
the "unnecessary restriction" category, and I don't think the same
argument about why we don't want to make #! paths longer applies -- no
one is going to export their default shell like they will their shell
scripts.
(2) In any case, the moira client should *WARN* users before
truncating their shell to 32 characters:
<podge> ~% chsh
Changing login shell for bjaspan.
Account information last changed on 09-jul-1991 18:55:57
by user bjaspan with chsh.
Current shell for bjaspan is /bin/csh.
New shell: /afs/.athena/contrib/sipb/bin/tcsh
/afs/.athena/contrib/sipb/bin/tcsh exists but is an unusual choice.
Try again if it is not what you wanted.
Changing shell to /afs/.athena/contrib/sipb/bin/tcsh...
Shell successfully changed.
<podge> ~% /mit/moira/decmipsbin/mrtest
moira: c
moira: a
moira: qy gubl bjaspan
bjaspan, 9123, /afs/.athena/contrib/sipb/bin/tc, Jaspan, Barry, R, 1, jbALEdGTVIAvs, 1992, 09-jul-1991 18:56:09, bjaspan, chsh
1 tuple
What should have happened:
Moira should not have a 32 character limit on shell paths. Moira
should not silently truncate fields when they are too long.