From 4b5c4d21704d0767747c71b22f0e91efe59c07d6 Mon Sep 17 00:00:00 2001 From: hjl Date: Wed, 22 Mar 2000 18:13:36 +0000 Subject: [PATCH 1/1] 2000-03-21 Michael Weiser * support/nfs/exports.c (parsesquash): Correctly set the return pointer. --- ChangeLog | 7 ++++++- support/nfs/exports.c | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 32a1739..5a3d010 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-03-21 Michael Weiser + + * support/nfs/exports.c (parsesquash): Correctly set the + return pointer. + Tue Mar 21 11:38:48 EST 2000 NeilBrown * support/include/nfs/nfs.h: Removed knowledge of internals of @@ -21,7 +26,7 @@ Tue Mar 21 11:38:48 EST 2000 NeilBrown * support/nfs/rpcmisc.c (rpc_init): Share transports. -Mon Mar 13 18:31:33 2000 H.J. Lu +2000-03-13 H.J. Lu * etc/redhat/nfsd.init: Updated. diff --git a/support/nfs/exports.c b/support/nfs/exports.c index 71420c8..3b34d4e 100644 --- a/support/nfs/exports.c +++ b/support/nfs/exports.c @@ -394,8 +394,8 @@ parsesquash(char *list, int **idp, int *lenp, char **ep) cp++; } while(1); - if (*cp == ',') *ep = cp+1; - + if (**ep == ',') (*ep)++; + *lenp = len; *idp = id; return 1; -- 2.39.2