aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/autofs/automount.c
diff options
context:
space:
mode:
authorEdward Tomasz Napierala <trasz@FreeBSD.org>2015-03-12 12:36:08 +0000
committerEdward Tomasz Napierala <trasz@FreeBSD.org>2015-03-12 12:36:08 +0000
commit8ee4f5ef45e1478131114d75b0716b5c58f82950 (patch)
tree31cc5666f6ed9eb97d9a2c102f4ece76d482a082 /usr.sbin/autofs/automount.c
parent4d58da13af0292880f5f1fb7fbf89bcbf6eb5ab9 (diff)
downloadsrc-8ee4f5ef45e1478131114d75b0716b5c58f82950.tar.gz
src-8ee4f5ef45e1478131114d75b0716b5c58f82950.zip
Make "automount -LL -o whatever" present options in the same order
as used by automountd(8). MFC after: 1 month Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/head/; revision=279916
Diffstat (limited to 'usr.sbin/autofs/automount.c')
-rw-r--r--usr.sbin/autofs/automount.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/autofs/automount.c b/usr.sbin/autofs/automount.c
index 8bcc79b13528..ce5d8614b130 100644
--- a/usr.sbin/autofs/automount.c
+++ b/usr.sbin/autofs/automount.c
@@ -381,13 +381,12 @@ main_automount(int argc, char **argv)
parse_master(root, AUTO_MASTER_PATH);
if (show_maps) {
- root->n_options = concat(options, ',', root->n_options);
if (show_maps > 1) {
node_expand_indirect_maps(root);
node_expand_ampersand(root, NULL);
}
node_expand_defined(root);
- node_print(root);
+ node_print(root, options);
return (0);
}