diff options
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/util.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c index c78c839325..16cbf4ab64 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -1989,7 +1989,6 @@ void standard_sub_advanced(int snum, char *user, char *connectpath, gid_t gid, c /**************************************************************************** Do some standard substitutions in a string. ****************************************************************************/ - void standard_sub(connection_struct *conn, char *str) { if (conn==NULL) @@ -1998,6 +1997,14 @@ void standard_sub(connection_struct *conn, char *str) standard_sub_advanced(SNUM(conn), conn->user, conn->connectpath, conn->gid, str); } +/**************************************************************************** +like standard_sub but by snum +****************************************************************************/ +void standard_sub_snum(int snum, char *str) +{ + standard_sub_advanced(snum, "", "", -1, str); +} + /******************************************************************* are two IPs on the same subnet? ********************************************************************/ |