about summary refs log tree commit diff
path: root/Src/utils.c
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-10-19 07:29:39 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-10-19 07:29:39 +0000
commit30b4434af8b30883039d334ab575e3fc0250fd06 (patch)
tree62757308b152d541ef9802b80399604209c7549f /Src/utils.c
parent0ad8e62f74d3ed82c7afa9f927e5b4b723ec394e (diff)
downloadzsh-30b4434af8b30883039d334ab575e3fc0250fd06.tar.gz
zsh-30b4434af8b30883039d334ab575e3fc0250fd06.tar.xz
zsh-30b4434af8b30883039d334ab575e3fc0250fd06.zip
revert:8327
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)