Skip to contentSkip to conversation

Is autofs4 8-bit compatible?

DISCUSSION atlantos41 2 participants 2 messages Mar 10, 2005 – Mar 27, 2005 Kernel automounter

lore
Share & tools
lore

atlantos41

author
#0 lore raw
Quoted 11 lines · On Sunday 06 March 2005 05:10, [email protected] wrote:

Could you try this patch for me please.

Ian

--- autofs-4.1.4_beta2/modules/lookup_file.c.char-compare 2005-03-06
11:06:19.000000000 +0800 +++
autofs-4.1.4_beta2/modules/lookup_file.c 2005-03-06 11:06:57.000000000
+0800 @@ -147,7 +147,7 @@

                               else if (ch == '*') {
                                       state = st_star;
                                       *(kptr++) = ch;

Review

Quoted 5 lines
(quoted diff) +1 -1
-                              } else if (isprint((char) ch)) {
+                              } else if (!iscntrl((char) ch)) {
                                       state = st_compare;
                                       *(kptr++) = ch;
                               }

I've tried your patch and there are no difference - autofs continue to fail on mount as before.

#1 lore raw
Quoted 3 lines · On Thu, 10 Mar 2005, atlantos41 wrote:
Quoted 2 lines · On Sunday 06 March 2005 05:10, [email protected] wrote:

Could you try this patch for me please.

snip ...

Quoted 3 lines

I've tried your patch and there are no difference - autofs continue to fail on mount as before.

Could you try this one please?

modules/lookup_file.c renamed from modules/lookup_file.c.wide_char +2 -2
@@ -148,7 +148,7 @@ static int read_one(FILE *f, char *key,
 				else if (ch == '*') {
 					state = st_star;
 					*(kptr++) = ch;
-				} else if (isprint((char) ch)) {
+				} else {
 					state = st_compare;
 					*(kptr++) = ch;
 				}
@@ -164,7 +164,7 @@ static int read_one(FILE *f, char *key,
 				getting = got_real;
 				state = st_entspc;
 			} else if (escape == esc_char);
-			else if (isprint((char) ch))
+			else
 				*(kptr++) = ch;
 			break;