Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/quota Check the right error code to fallback to rquo...



details:   https://anonhg.NetBSD.org/src/rev/65ef23079fb5
branches:  trunk
changeset: 552205:65ef23079fb5
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Sun Sep 21 17:01:43 2003 +0000

description:
Check the right error code to fallback to rquota v1 RPC.
Problem found and fix tested by Jan Schaumann.

diffstat:

 usr.bin/quota/quota.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 6017be5f3160 -r 65ef23079fb5 usr.bin/quota/quota.c
--- a/usr.bin/quota/quota.c     Sun Sep 21 15:35:46 2003 +0000
+++ b/usr.bin/quota/quota.c     Sun Sep 21 17:01:43 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: quota.c,v 1.26 2003/08/07 11:15:34 agc Exp $   */
+/*     $NetBSD: quota.c,v 1.27 2003/09/21 17:01:43 bouyer Exp $        */
 
 /*
  * Copyright (c) 1980, 1990, 1993
@@ -42,7 +42,7 @@
 #if 0
 static char sccsid[] = "@(#)quota.c    8.4 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: quota.c,v 1.26 2003/08/07 11:15:34 agc Exp $");
+__RCSID("$NetBSD: quota.c,v 1.27 2003/09/21 17:01:43 bouyer Exp $");
 #endif
 #endif /* not lint */
 
@@ -638,7 +638,7 @@
        ret = callaurpc(fst->f_mntfromname, RQUOTAPROG, EXT_RQUOTAVERS,
            RQUOTAPROC_GETQUOTA, xdr_ext_getquota_args, &ext_gq_args,
            xdr_getquota_rslt, &gq_rslt);
-       if (ret == RPC_VERSMISMATCH) {
+       if (ret == RPC_PROGVERSMISMATCH) {
                if (quotatype != USRQUOTA) {
                        *cp = ':';
                        return (0);



Home | Main Index | Thread Index | Old Index