[OpenAFS] Bug in pts/ptserver: createuser with a negative id works

Jeffrey Altman jaltman@secure-endpoints.com
Fri, 15 Oct 2010 15:09:31 -0400


This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigBBC70846FD327537BF745DB8
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 10/15/2010 3:05 PM, Phillip Moore wrote:
> While adding test cases for failures in the AFS::Command::PTS test
> suite, I noticed the following unexpected results:
>=20
> [root@rpcore ~]# pts createuser -name fakeafscmduser -id -1010 -cell
> a.rp.nyc.us.test.efs
> User fakeafscmduser has id -1010
> [root@rpcore ~]# pts creategroup -name fakeafscmdgroup -id 510 -cell
> a.rp.nyc.us.test.efs
> pts: argument illegal or out of range because group id 510 was not nega=
tive
>=20
> At the very least, this assymetry suggests that one these is wrong.  My=

> vote is that createuser is broken, and should be producing the same typ=
e
> of error as creategroup does when the opposite mistake is made.
>=20
> The resulting pts ID looks like a normal group, FWIW:
>=20
> [root@rpcore ~]# pts examine fakeafscmduser
> Name: fakeafscmduser, id: -1010, owner: afsadmin, creator: afsadmin,
>   membership: 0, flags: S-M--, group quota: 0.
>=20
> This is using OpenAFS 1.5.77, and I don't have handy access to an older=

> cell to test this.=20

Creatuser is broken.  Please send bugs to openafs-bugs@openafs.org



--------------enigBBC70846FD327537BF745DB8
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)

iQEcBAEBAgAGBQJMuKbtAAoJENxm1CNJffh4JjUH+gI/TjayXZcaTDszBkYBaN8i
6APwKIUVIraRlO1M2ZZTwUEef8z/UCZVLT+00aVpPPyYFui3k8ximcnL7+kv6wmQ
BUtFTuHi6lLmlsWytZUBjpFgaWqoQ1upp/p601ve3f2a47e1upd4dPKGxklIJ33G
di1hV55q+DH0iJR8aOYY+/BKqEmnOLTLFiCXoJVFkrSx370okxxA2qWrG7h8qPCc
Jhsg5WZ5VGb5AlQNEaVQWmGT0SynvDOSm05iN2ZE22sJUZiSe6u5K4RRRVoEV4cj
qcSQ96VuGtMxzcovVHROdVLOeDb2mhLQnjTwTiOT6yagyRD5qpiMvZibrodZNf4=
=HOFi
-----END PGP SIGNATURE-----

--------------enigBBC70846FD327537BF745DB8--