summaryrefslogtreecommitdiff
path: root/source3/lib/substitute.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-11-05 04:34:44 +0000
committerGerald Carter <jerry@samba.org>2003-11-05 04:34:44 +0000
commit3d6f7800106a6f5356c19f413f50d43de74a4b8f (patch)
treed265b8cc9a356343612797cc5f43bfa85f5f9b2c /source3/lib/substitute.c
parent34bbe8d2d30cde6195afa7a18376bf1281aeac8c (diff)
downloadsamba-3d6f7800106a6f5356c19f413f50d43de74a4b8f.tar.gz
samba-3d6f7800106a6f5356c19f413f50d43de74a4b8f.tar.bz2
samba-3d6f7800106a6f5356c19f413f50d43de74a4b8f.zip
make sure that we expand %H (from vl); bug 612
(This used to be commit d1cf39e2ecee7e76953a5eee386f723a46bf9b14)
Diffstat (limited to 'source3/lib/substitute.c')
-rw-r--r--source3/lib/substitute.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/lib/substitute.c b/source3/lib/substitute.c
index 6e546bc161..923afd989f 100644
--- a/source3/lib/substitute.c
+++ b/source3/lib/substitute.c
@@ -529,6 +529,9 @@ char *alloc_sub_basic(const char *smb_name, const char *str)
else
t = realloc_string_sub(t, "%L", global_myname());
break;
+ case 'N':
+ t = realloc_string_sub(t, "%N", automount_server(smb_name));
+ break;
case 'M' :
t = realloc_string_sub(t, "%M", client_name());
break;