summaryrefslogtreecommitdiffstats
path: root/usr.sbin/autofs
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2015-03-12 12:14:11 +0000
committertrasz <trasz@FreeBSD.org>2015-03-12 12:14:11 +0000
commit724f53c3cf42294fa961bd4c6033b9360270395b (patch)
tree280bb4acd4a18154e2b373a7bc1bf561bd3f24b8 /usr.sbin/autofs
parent19bf0d882b83adc63cf9aeada8ca86c9a2bf8adb (diff)
downloadFreeBSD-src-724f53c3cf42294fa961bd4c6033b9360270395b.zip
FreeBSD-src-724f53c3cf42294fa961bd4c6033b9360270395b.tar.gz
Options from auto_master must be appended to options from maps,
not prepended. MFC after: 1 month Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'usr.sbin/autofs')
-rw-r--r--usr.sbin/autofs/automountd.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/autofs/automountd.c b/usr.sbin/autofs/automountd.c
index 168e8b3..191e712 100644
--- a/usr.sbin/autofs/automountd.c
+++ b/usr.sbin/autofs/automountd.c
@@ -232,7 +232,11 @@ handle_request(const struct autofs_daemon_request *adr, char *cmdline_options,
}
options = node_options(node);
- options = concat(adr->adr_options, ',', options);
+
+ /*
+ * Append options from auto_master.
+ */
+ options = concat(options, ',', adr->adr_options);
/*
* Prepend options passed via automountd(8) command line.
OpenPOWER on IntegriCloud