From 36d91ba2fe1ecc8120a252c12c19729519bdb078 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20H=C3=A4rdeman?= Date: Mon, 21 May 2007 14:48:18 +0200 Subject: Add caching uid/gid lookup functions --- metaentry.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'metaentry.c') diff --git a/metaentry.c b/metaentry.c index 683a126..a2ab65b 100644 --- a/metaentry.c +++ b/metaentry.c @@ -25,8 +25,6 @@ #include #include #include -#include -#include #include #include #include @@ -203,14 +201,14 @@ mentry_create(const char *path) return NULL; } - pbuf = getpwuid(sbuf.st_uid); + pbuf = xgetpwuid(sbuf.st_uid); if (!pbuf) { msg(MSG_ERROR, "getpwuid failed for %i: %s\n", (int)sbuf.st_uid, strerror(errno)); return NULL; } - gbuf = getgrgid(sbuf.st_gid); + gbuf = xgetgrgid(sbuf.st_gid); if (!gbuf) { msg(MSG_ERROR, "getgrgid failed for %i: %s\n", (int)sbuf.st_gid, strerror(errno)); -- cgit v1.2.1