* [PATCH 2.6.6-rc2-mm1] BUGFIX - autofs4
@ 2004-04-21 19:03 FabF
0 siblings, 0 replies; only message in thread
From: FabF @ 2004-04-21 19:03 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 146 bytes --]
Andrew,
Here's a bugfix against autofs4 (AFAICS, we parse_int to fd without
check) and parser optimization.
Could you apply ?
Regards,
Fabian
[-- Attachment #2: autofs41.diff --]
[-- Type: text/x-patch, Size: 947 bytes --]
diff -Naur orig/fs/autofs4/inode.c edited/fs/autofs4/inode.c
--- orig/fs/autofs4/inode.c 2004-04-21 18:11:01.000000000 +0200
+++ edited/fs/autofs4/inode.c 2004-04-21 20:56:30.000000000 +0200
@@ -132,34 +132,25 @@
continue;
token = match_token(p, tokens, args);
+ if (match_int(args, pipefd))
+ return 1;
switch (token) {
case Opt_fd:
- if (match_int(args, pipefd))
- return 1;
+ *pipefd = option;
break;
case Opt_uid:
- if (match_int(args, &option))
- return 1;
*uid = option;
break;
case Opt_gid:
- if (match_int(args, &option))
- return 1;
*gid = option;
break;
case Opt_pgrp:
- if (match_int(args, &option))
- return 1;
*pgrp = option;
break;
case Opt_minproto:
- if (match_int(args, &option))
- return 1;
*minproto = option;
break;
case Opt_maxproto:
- if (match_int(args, &option))
- return 1;
*maxproto = option;
break;
default:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-04-21 19:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-21 19:03 [PATCH 2.6.6-rc2-mm1] BUGFIX - autofs4 FabF
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®