diff options
author | Martin Pärtel <martin.partel@gmail.com> | 2012-05-18 12:30:31 +0300 |
---|---|---|
committer | Martin Pärtel <martin.partel@gmail.com> | 2012-05-18 12:30:31 +0300 |
commit | 1cfc042b5a5e6dc8ea5d81d9d719d472a1800167 (patch) | |
tree | 3d1eb3f2d8661d90d57d2f0364bee3ed9eba7fbb /src/usermap.h | |
parent | cb4cf90bd7e13ecb7b2a286d548fe853796948c4 (diff) | |
download | bindfs-1cfc042b5a5e6dc8ea5d81d9d719d472a1800167.tar.gz |
Fixed --create-as-user.
Diffstat (limited to 'src/usermap.h')
-rw-r--r-- | src/usermap.h | 14 |
1 files changed, 4 insertions, 10 deletions
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 |