about summary refs log tree commit diff
path: root/Src/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/utils.c')
-rw-r--r--Src/utils.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/Src/utils.c b/Src/utils.c
index 26b9ece5c..3f0649f69 100644
--- a/Src/utils.c
+++ b/Src/utils.c
@@ -407,6 +407,15 @@ fprintdir(char *s, FILE *f)
     }
 }
 
+/* Returns the current username.  It caches the username *
+ * and uid to try to avoid requerying the password files *
+ * or NIS/NIS+ database.                                 */
+
+/**/
+uid_t cached_uid;
+/**/
+char *cached_username;
+
 /**/
 char *
 get_username(void)