summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog13
-rw-r--r--utils/rquotad/hasquota.c2
2 files changed, 10 insertions, 5 deletions
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 <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]);