From 12351196aec1e03e183b97d65c2221e93e10ff3b Mon Sep 17 00:00:00 2001 From: Robert Thurlow Date: Wed, 15 Oct 2008 08:29:52 -0600 Subject: 6667066 automounter parser fails with special character in map entries --- usr/src/cmd/fs.d/autofs/autod_parse.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'usr/src') diff --git a/usr/src/cmd/fs.d/autofs/autod_parse.c b/usr/src/cmd/fs.d/autofs/autod_parse.c index 95856f2fc3..b37f686d65 100644 --- a/usr/src/cmd/fs.d/autofs/autod_parse.c +++ b/usr/src/cmd/fs.d/autofs/autod_parse.c @@ -25,8 +25,6 @@ * Use is subject to license terms. */ -#pragma ident "%Z%%M% %I% %E% SMI" - #include #include #include @@ -278,9 +276,9 @@ mapline_to_mapent(struct mapent **mapents, struct mapline *ml, char *key, /* * implied is true if there is no '/' (the usual NFS case) - * or if there are two slashes (the smbfs case) + * or if there are two slashes (for smbfs direct entries) */ - implied = ((*w != '/') || (*(w+1) == '/')); + implied = ((*w != '/') || (isdirect && *(w+1) == '/')); while (*w == '/' || implied) { mp = me; if ((me = (struct mapent *)malloc(sizeof (*me))) == NULL) -- cgit v1.2.3