Hi all,
Even though underscores are not really valid in hostnames, many people
use them and they seem to be tolerated in many places. So I propose
the one-liner below to see what you think.
This one-liner adds underscore as a valid hostname character for NFS
mounts.
Signed-off-by: Fabio Olive Leite <[EMAIL PROTECTED]>
---
parse_sun.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/parse_sun.c b/modules/parse_sun.c
index 6f10a4f..c849ff3 100644
--- a/modules/parse_sun.c
+++ b/modules/parse_sun.c
@@ -691,7 +691,7 @@ static int validate_location(char *loc)
if (check_colon(ptr)) {
while (*ptr && *ptr != ':') {
if (!(isalnum(*ptr) ||
- *ptr == '-' || *ptr == '.' ||
+ *ptr == '-' || *ptr == '.' || *ptr == '_' ||
*ptr == ',' || *ptr == '(' || *ptr == ')'))
return 0;
ptr++;
Kind regards,
Fábio
--
ex sed lex awk yacc, e pluribus unix, amem
_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs