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 --- metastore.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'metastore.c') diff --git a/metastore.c b/metastore.c index affcf19..a03e0ef 100644 --- a/metastore.c +++ b/metastore.c @@ -20,8 +20,6 @@ #include #include -#include -#include #include #include #include @@ -121,7 +119,7 @@ compare_fix(struct metaentry *real, struct metaentry *stored, int cmp) if (cmp & DIFF_OWNER) { msg(MSG_NORMAL, "\tchanging owner from %s to %s\n", real->path, real->group, stored->group); - owner = getpwnam(stored->owner); + owner = xgetpwnam(stored->owner); if (!owner) { msg(MSG_DEBUG, "\tgetpwnam failed: %s\n", strerror(errno)); @@ -133,7 +131,7 @@ compare_fix(struct metaentry *real, struct metaentry *stored, int cmp) if (cmp & DIFF_GROUP) { msg(MSG_NORMAL, "\tchanging group from %s to %s\n", real->path, real->group, stored->group); - group = getgrnam(stored->group); + group = xgetgrnam(stored->group); if (!group) { msg(MSG_DEBUG, "\tgetgrnam failed: %s\n", strerror(errno)); -- cgit v1.2.1