On Sun, Oct 28, 2018 at 06:19:11PM +0100, Matthieu Herrb wrote: > On Sun, Oct 28, 2018 at 08:42:55AM -0500, Edgar Pettijohn III wrote: > > >Synopsis: xenodm truncates xlogin.Login.namePrompt and > > xlogin.Login.passwdPrompt > > >Category: user > > >Environment: > > System : OpenBSD 6.4 > > Details : OpenBSD 6.4 (GENERIC.MP) #364: Thu Oct 11 13:30:23 MDT > > 2018 > > [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP > > > > Architecture: OpenBSD.amd64 > > Machine : amd64 > > >Description: > > I have the following in /etc/X11/xenodm/Xresources: > > > > xlogin.Login.namePrompt: login > > xlogin.Login.passwdPrompt: passwd > > > > However, when the login screen pops up it shows the following: > > > > logi > > passw > > Hi, > > the patch below should fix it:
ok tb As an aside, this also makes the default login screen show "Login:" instread of "Login". > > Index: app/xenodm/greeter/Login.c > =================================================================== > RCS file: /cvs/OpenBSD/xenocara/app/xenodm/greeter/Login.c,v > retrieving revision 1.4 > diff -u -p -u -r1.4 Login.c > --- app/xenodm/greeter/Login.c 11 Jul 2018 16:28:54 -0000 1.4 > +++ app/xenodm/greeter/Login.c 28 Oct 2018 17:18:23 -0000 > @@ -754,7 +754,7 @@ SetPrompt (Widget ctx, int promptNum, co > return -1; > } > > - strlcpy(prompt, message, messageLen); > + strlcpy(prompt, message, messageLen+3); > > /* Make sure text prompts have at least two spaces at end */ > e = messageLen; > > -- > Matthieu Herrb >
