Source-Changes-HG archive

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

[src/trunk]: src/lib/libquota Fix default quota file names, both user and gro...



details:   https://anonhg.NetBSD.org/src/rev/ec50506814a7
branches:  trunk
changeset: 365816:ec50506814a7
user:      hannken <hannken%NetBSD.org@localhost>
date:      Tue Apr 26 15:36:42 2022 +0000

description:
Fix default quota file names, both user and group quota used the
same default name "QUOTAFILENAME, names[USRQUOTA])" resulting in
diagnostic assertion and possibly corrupted quota data.

diffstat:

 lib/libquota/quota_oldfiles.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 5bcb7e5faa31 -r ec50506814a7 lib/libquota/quota_oldfiles.c
--- a/lib/libquota/quota_oldfiles.c     Tue Apr 26 15:18:08 2022 +0000
+++ b/lib/libquota/quota_oldfiles.c     Tue Apr 26 15:36:42 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: quota_oldfiles.c,v 1.9 2012/02/24 18:00:09 njoly Exp $ */
+/*     $NetBSD: quota_oldfiles.c,v 1.10 2022/04/26 15:36:42 hannken Exp $      */
 
 /*
  * Copyright (c) 1980, 1990, 1993
@@ -33,7 +33,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: quota_oldfiles.c,v 1.9 2012/02/24 18:00:09 njoly Exp $");
+__RCSID("$NetBSD: quota_oldfiles.c,v 1.10 2022/04/26 15:36:42 hannken Exp $");
 
 #include <sys/types.h>
 #include <sys/stat.h>
@@ -255,7 +255,7 @@
 
        (void)snprintf(buf, maxlen, "%s/%s.%s",
                       qh->qh_mountpoint,
-                      QUOTAFILENAME, names[USRQUOTA]);
+                      QUOTAFILENAME, names[idtype]);
 }
 
 const char *



Home | Main Index | Thread Index | Old Index