[PATCH 2.6.6-rc2-mm1] BUGFIX autofs4 (version2)

From: FabF
Date: Wed Apr 21 2004 - 14:11:20 EST


Andrew,

This one should be more accurate ...

Regards,
Fabian
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 21:07:37.174140904 +0200
@@ -132,34 +132,25 @@
continue;

token = match_token(p, tokens, args);
+ if (match_int(&args[0], &option))
+ 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: