summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;