Date: Thu, 26 Dec 1996 08:00:07 -0500 (EST) From: Peter Dufault <dufault@hda.com> To: guido@gvr.win.tue.nl (Guido van Rooij) Cc: freebsd-hackers@freebsd.org Subject: Re: username lengths Message-ID: <199612261300.IAA07192@hda.hda.com> In-Reply-To: <199612241424.PAA05541@gvr.win.tue.nl> from Guido van Rooij at "Dec 24, 96 03:24:19 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
> What is the correct way to check what the max length of usernames on > a system is? Somehow I cannot find it... P1003.1b-1993 section B.9.1: "POSIX.1 is silent about the content of the strings containing user or group names. These could be digit strings..." and so on. I suppose this means it could be the user's uuencoded home directory. So the complete answer is that you can't have a max length; you must use getlogin() or getpwnam() and then allocate to the string length. -- Peter Dufault (dufault@hda.com) Realtime Machine Control and Simulation HD Associates, Inc. Voice: 508 433 6936
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199612261300.IAA07192>