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 | f77d9a2cca25c40456b9d37ede1f10f57454b2a4 (patch) | |
tree | 814cc444cf8931ab2e0e8ece72054deabac585da /source3 | |
parent | b8c51212db9104873fc5eceb853ae0a630299059 (diff) | |
download | samba-f77d9a2cca25c40456b9d37ede1f10f57454b2a4.tar.gz samba-f77d9a2cca25c40456b9d37ede1f10f57454b2a4.tar.bz2 samba-f77d9a2cca25c40456b9d37ede1f10f57454b2a4.zip |
added standard_sub_snum() function for modules that don't have
a connection structure
(This used to be commit f35fe3b4a175161128341fe30a61437c560180d1)
Diffstat (limited to 'source3')
-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? ********************************************************************/ |