On Wed, 2022-07-13 at 23:09 +0200, Marc Haber wrote: > On Wed, Jul 13, 2022 at 04:50:20PM -0400, Matt Barry wrote: > > On Wed, 2022-07-13 at 22:44 +0200, Marc Haber wrote: > > > On Wed, Jul 06, 2022 at 12:32:16PM +0200, Marc Haber wrote: > > > > the useradd documentation says that a user name has a 32 > > > > character > > > > limit. We should enforce this as well. > > > > > > Matt, would you want to take a quick plunge at this as well? > > > You're > > > still deeply acquained with the entire name checking stuff > > > anyway. > > > > Sure. There actually is a test for this, and it passes (ie. fails > > in > > every instance, for a 33 character name) - I think because useradd > > fails? We might as well check it though, I'll take a look. > > If we are ok with erroring out with a useradd error message, and the > output is not offensively ugly, I'm fine with that, and we can just > close this bug as fixed in 3.122. I am not emotional about this.
I would apply that patch at some point; it isn't urgent, but it is cleaner.