From: hjl Date: Mon, 13 Dec 1999 22:37:37 +0000 (+0000) Subject: Mon Dec 13 13:40:20 1999 H.J. Lu X-Git-Tag: nfs-utils-0-1-5~2 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=537042c4b8088b03ab9561701c927772179857a3;p=nfs-utils.git Mon Dec 13 13:40:20 1999 H.J. Lu * utils/rquotad/hasquota.c (hasquota): Malloc one more char for '/'. --- diff --git a/ChangeLog b/ChangeLog index 0291fb7..8ba7d75 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Dec 13 13:40:20 1999 H.J. Lu + + * utils/rquotad/hasquota.c (hasquota): Malloc one more char + for '/'. + Mon Dec 6 09:42:45 1999 H.J. Lu * configure.in (VERSION): Set to "0.1.4". @@ -48,16 +53,16 @@ Mon Nov 29 11:15:47 1999 H.J. Lu * utils/statd/monitor.c (sm_mon_1_svc): Accept lockd callbacks to the new port 24 as well as the historical port 100021. -Tue Nov 23 10:21:34 EST 1999 Neil Brown +Tue Nov 23 10:21:34 1999 Neil Brown - * etc/redhat/nfsd.init (stop) : moved exportfs -ua after + * etc/redhat/nfsd.init (stop): moved exportfs -ua after stopping nfsd to stop spurious ESTALE on server shutdown. Tue Nov 23 10:13:39 1999 Neil Brown * support/nfs/exports.c (parseopts): make copy of opt string before 'nul'ing out commas so that - + # exportfs -o option1,option2 hosta:/fs hostb:/fs applies both options to both exports. @@ -83,7 +88,7 @@ Thu Oct 28 12:55:42 1999 H.J. Lu * tools/rpcgen/rpc_scan.h (tok_kind): Likewise. * tools/rpcgen/rpc_util.c (tokstrings): Likewise. -Thu Oct 28 11:27:51 EST 1999 Neil Brown +Thu Oct 28 11:27:51 1999 Neil Brown * support/include/nfs/export.h addedd NFSEXP_NOSUBTREECHECK * support/nfs/exports.c: added {no_,}subtree_check and changed diff --git a/utils/rquotad/hasquota.c b/utils/rquotad/hasquota.c index 008a93f..5d13921 100644 --- a/utils/rquotad/hasquota.c +++ b/utils/rquotad/hasquota.c @@ -51,7 +51,7 @@ hasquota(struct mntent *mnt, int type, char **qfnamep) if (((type == USRQUOTA) && (option = hasmntopt(mnt, MNTOPT_USRQUOTA)) != (char *)0) || ((type == GRPQUOTA) && (option = hasmntopt(mnt, MNTOPT_GRPQUOTA)) != (char *)0)) { if ((pathname = strchr(option, '=')) == (char *)0) { - *qfnamep=xmalloc(strlen(mnt->mnt_dir)+strlen(qfname)+strlen(qfextension[type])+2); + *qfnamep=xmalloc(strlen(mnt->mnt_dir)+strlen(qfname)+strlen(qfextension[type])+3); (void) sprintf(*qfnamep, "%s%s%s.%s", mnt->mnt_dir, (mnt->mnt_dir[strlen(mnt->mnt_dir) - 1] == '/') ? "" : "/", qfname, qfextension[type]);