aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAndrew Hastings <abh@cray.com>2011-01-27 11:43:45 -0600
committerEric B Munson <emunson@mgebm.net>2011-02-23 11:55:34 -0500
commit48b7ff1d536f63025e6b279be6798d167a4fa87a (patch)
tree0146627e82c9afe62bcc3b4b45ff24c19d6d829c /tests
parent1fb91f1092771a5ae91179ef5b5a9174b3222c69 (diff)
downloadlibhugetlbfs-48b7ff1d536f63025e6b279be6798d167a4fa87a.tar.gz
hugeadm.c: Don't segfault if user not in passwd file
If a user somehow managed to run hugeadm without an entry being present for the user in the passwd file, hugeadm was segfaulting because it did not check for failure of getpwuid(). Fix: check for getpwuid() failure and issue an appropriate error message. Based on a patch originally authored by Dean Luick <luick@cray.com>. Signed-off-by: Andrew Hastings <abh@cray.com> on behalf of Cray Inc. Signed-off-by: Eric B Munson <emunson@mgebm.net>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions