pushing: add new get_user_uuid utility
commit926ddb30e187404d1994e25f3a3d6a655a55aef6
authorKyle J. McKay <mackyle@gmail.com>
Tue, 29 Apr 2014 03:28:43 +0000 (28 20:28 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Tue, 29 Apr 2014 03:28:43 +0000 (28 20:28 -0700)
treee32d499424916e84544758e702a2837f6121884e
parent475fcc6fab89871e6b1366efb480c436bbe4c957
pushing: add new get_user_uuid utility

As part of the http push user validation, the pushing user's
UUID is checked.  This utility retrieves the user's UUID but
rather than using getpwnam to retrieve it (which can only
check the system's or chroot's passwd file), it reads a
passwd file directly.

While the Girocco::User module can be used to retrieve the
same UUID as this utility, this utility avoids the need to
load the Perl interpreter just to retrieve the user's UUID.
install.sh
src/.gitignore
src/Makefile
src/get_user_uuid.c [new file with mode: 0644]