Date: Wed, 28 Jan 2015 21:16:57 +1100 (EST) From: Bruce Evans <brde@optusnet.com.au> To: Baptiste Daroussin <bapt@freebsd.org> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r277764 - in head/usr.sbin/pw: . tests Message-ID: <20150128210631.Q2199@besplex.bde.org> In-Reply-To: <201501261650.t0QGohSI044141@svn.freebsd.org> References: <201501261650.t0QGohSI044141@svn.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 26 Jan 2015, Baptiste Daroussin wrote: > Log: > Revert r277652 > > uid and gid are never and should never be negative. The pw(8) manpage clearly > states the -u and -g arguments are for uids/gids, hence using negative values is > abusing a bug in former versions of pw(8) Thanks. Further discussion showed that the historical misbehaviour is more common than I thought, so this doesn't resolve the problem in pw. But it seems reasonable to start disallowing creating negative ids in utilities for creating ids. Ones that used to allow it should at least allow creating all the positive ids that the negative ids were accidentally mapped to (like -2 -> huge value). Bruce
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150128210631.Q2199>