diff options
author | Robert Thurlow <Robert.Thurlow@Sun.COM> | 2008-10-15 08:29:52 -0600 |
---|---|---|
committer | Robert Thurlow <Robert.Thurlow@Sun.COM> | 2008-10-15 08:29:52 -0600 |
commit | 12351196aec1e03e183b97d65c2221e93e10ff3b (patch) | |
tree | cf65b8796baa6b2ac485b4adb9973582edf8919b /usr/src | |
parent | b614fdaa88cae142670155fa1545fda48d2758c4 (diff) | |
download | illumos-joyent-12351196aec1e03e183b97d65c2221e93e10ff3b.tar.gz |
6667066 automounter parser fails with special character in map entries
Diffstat (limited to 'usr/src')
-rw-r--r-- | usr/src/cmd/fs.d/autofs/autod_parse.c | 6 |
1 files changed, 2 insertions, 4 deletions
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 <stdio.h> #include <ctype.h> #include <string.h> @@ -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) |