diff options
author | Andrew Tridgell <tridge@samba.org> | 2000-04-15 08:07:57 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2000-04-15 08:07:57 +0000 |
commit | f35fe3b4a175161128341fe30a61437c560180d1 (patch) | |
tree | 957d4674f56c1bd4837abfcd9e11bc59378d20e6 | |
parent | a82a5acff2ad2120f5480f0cb08550e95d80c59e (diff) | |
download | samba-f35fe3b4a175161128341fe30a61437c560180d1.tar.gz samba-f35fe3b4a175161128341fe30a61437c560180d1.tar.xz samba-f35fe3b4a175161128341fe30a61437c560180d1.zip |
added standard_sub_snum() function for modules that don't have
a connection structure
-rw-r--r-- | source/lib/util.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/source/lib/util.c b/source/lib/util.c index c78c839325b..16cbf4ab647 100644 --- a/source/lib/util.c +++ b/source/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? ********************************************************************/ |