diff options
Diffstat (limited to 'source/lib/substitute.c')
-rw-r--r-- | source/lib/substitute.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/lib/substitute.c b/source/lib/substitute.c index af30e900ace..615a8d73b0a 100644 --- a/source/lib/substitute.c +++ b/source/lib/substitute.c @@ -21,8 +21,6 @@ #include "includes.h" -extern struct current_user current_user; - fstring local_machine=""; fstring remote_arch="UNKNOWN"; userdom_struct current_user_info; @@ -802,6 +800,7 @@ char *alloc_sub_conn(connection_struct *conn, const char *str) void standard_sub_snum(int snum, char *str, size_t len) { + extern struct current_user current_user; static uid_t cached_uid = -1; static fstring cached_user; /* calling uidtoname() on every substitute would be too expensive, so |