diff options
author | Andrew Bartlett <abartlet@samba.org> | 2002-06-15 13:05:37 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2002-06-15 13:05:37 +0000 |
commit | 09754ec797c4232d2016c7eff2e74044f28ebb7c (patch) | |
tree | 8af339b1235f3e369f671d7b7ee1d27e53c5308d /source/lib | |
parent | 957c865cee7f799145f9f1d30dfd0d0a25d826cf (diff) | |
download | samba-09754ec797c4232d2016c7eff2e74044f28ebb7c.tar.gz samba-09754ec797c4232d2016c7eff2e74044f28ebb7c.tar.xz samba-09754ec797c4232d2016c7eff2e74044f28ebb7c.zip |
Simplify this code further. Just substitute %H, and let the normal code
paths handle the rest later.
Andrew Bartlett
Diffstat (limited to 'source/lib')
-rw-r--r-- | source/lib/substitute.c | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/source/lib/substitute.c b/source/lib/substitute.c index eea720c0144..439263dd23a 100644 --- a/source/lib/substitute.c +++ b/source/lib/substitute.c @@ -343,42 +343,6 @@ void standard_sub_conn(connection_struct *conn, char *str) } /**************************************************************************** - Like standard_sub but for a homes share where snum still points to the [homes] - share. No user specific snum created yet so servicename should be the username. -****************************************************************************/ - -void standard_sub_home(int snum, const char *share, - const char *user, const char *homedir, pstring str) -{ - char *p, *s; - - for (s=str; (p=strchr_m(s, '%'));s=p) { - int l = sizeof(pstring) - (int)(p-str); - - switch (*(p+1)) { - case 'H': - string_sub(p,"%H", homedir, l); - break; - - case 'S': - string_sub(p,"%S", share, l); - break; - case 'p': - string_sub(p,"%p", automount_path(user), l); - break; - case '\0': - p++; - break; /* don't run off the end of the string */ - - default: p+=2; - break; - } - } - - standard_sub_advanced(snum, user, "", -1, current_user_info.smb_name, str); -} - -/**************************************************************************** Like standard_sub but by snum. ****************************************************************************/ |