diff options
author | Martin Pärtel <martin.partel@gmail.com> | 2012-07-04 01:36:56 +0300 |
---|---|---|
committer | Martin Pärtel <martin.partel@gmail.com> | 2012-07-04 01:36:56 +0300 |
commit | 435f4edb6ed4a8e4920bb925c333ac0a610c14d2 (patch) | |
tree | ee2df7636d2ca8c8f25818dba8554e776a494d93 /src/userinfo.h | |
parent | 4799ba57707884a7d451434daa211eff2330678a (diff) | |
download | bindfs-435f4edb6ed4a8e4920bb925c333ac0a610c14d2.tar.gz |
Cache user data for user_belongs_to_group().
This considerably speeds up --mirror @group.
Diffstat (limited to 'src/userinfo.h')
-rw-r--r-- | src/userinfo.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/userinfo.h b/src/userinfo.h index 26cdb00..4c0ca55 100644 --- a/src/userinfo.h +++ b/src/userinfo.h @@ -35,5 +35,6 @@ int user_uid(const char *username, uid_t *ret); int group_gid(const char *groupname, gid_t *ret); int user_belongs_to_group(uid_t uid, gid_t gid); +void invalidate_user_cache(); /* safe to call from signal handler */ #endif |