diff options
author | hjl <hjl> | 1999-12-13 22:37:37 +0000 |
---|---|---|
committer | hjl <hjl> | 1999-12-13 22:37:37 +0000 |
commit | 537042c4b8088b03ab9561701c927772179857a3 (patch) | |
tree | 30c1c1c2edbd6fe5b5f9aa3f11b4f09cea531c68 | |
parent | 0d9401717fbe56ac58600fa38786a930b325d732 (diff) | |
download | nfs-utils-537042c4b8088b03ab9561701c927772179857a3.tar.gz nfs-utils-537042c4b8088b03ab9561701c927772179857a3.tar.xz nfs-utils-537042c4b8088b03ab9561701c927772179857a3.zip |
Mon Dec 13 13:40:20 1999 H.J. Lu <hjl@lucon.org>
* utils/rquotad/hasquota.c (hasquota): Malloc one more char
for '/'.
-rw-r--r-- | ChangeLog | 13 | ||||
-rw-r--r-- | utils/rquotad/hasquota.c | 2 |
2 files changed, 10 insertions, 5 deletions
@@ -1,3 +1,8 @@ +Mon Dec 13 13:40:20 1999 H.J. Lu <hjl@lucon.org> + + * utils/rquotad/hasquota.c (hasquota): Malloc one more char + for '/'. + Mon Dec 6 09:42:45 1999 H.J. Lu <hjl@lucon.org> * configure.in (VERSION): Set to "0.1.4". @@ -48,16 +53,16 @@ Mon Nov 29 11:15:47 1999 H.J. Lu <hjl@lucon.org> * 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 <neilb@cse.unsw.edu.au> +Tue Nov 23 10:21:34 1999 Neil Brown <neilb@cse.unsw.edu.au> - * 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 <neilb@cse.unsw.edu.au> * 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 <hjl@lucon.org> * 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 <neilb@cse.unsw.edu.au> +Thu Oct 28 11:27:51 1999 Neil Brown <neilb@cse.unsw.edu.au> * 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]); |