From 1cfc042b5a5e6dc8ea5d81d9d719d472a1800167 Mon Sep 17 00:00:00 2001 From: Martin Pärtel Date: Fri, 18 May 2012 12:30:31 +0300 Subject: Fixed --create-as-user. --- src/usermap.h | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'src/usermap.h') diff --git a/src/usermap.h b/src/usermap.h index 8a74bb1..9c1387e 100644 --- a/src/usermap.h +++ b/src/usermap.h @@ -45,16 +45,10 @@ UsermapStatus usermap_add_gid(UserMap *map, gid_t from, gid_t to); const char* usermap_errorstr(UsermapStatus status); -/* Returns the uid that u is mapped to, or u if none. */ -uid_t usermap_get_uid(UserMap *map, uid_t u); +/* Returns the uid that u is mapped to, or deflt if none. */ +uid_t usermap_get_uid_or_default(UserMap *map, uid_t u, uid_t deflt); -/* Returns the gid that g is mapped to, or g if none. */ -gid_t usermap_get_gid(UserMap *map, gid_t g); - -/* Returns the uid that u is mapped to, or -1 if none. */ -uid_t usermap_get_uid_or_none(UserMap *map, uid_t u); - -/* Returns the gid that g is mapped to, or -1 if none. */ -gid_t usermap_get_gid_or_none(UserMap *map, gid_t g); +/* Returns the gid that g is mapped to, or deflt if none. */ +gid_t usermap_get_gid_or_default(UserMap *map, gid_t g, gid_t deflt); #endif -- cgit v1.2.3