Module Name: src Committed By: hannken Date: Tue Apr 26 15:36:42 UTC 2022
Modified Files: src/lib/libquota: quota_oldfiles.c Log Message: 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. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/lib/libquota/quota_oldfiles.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libquota/quota_oldfiles.c diff -u src/lib/libquota/quota_oldfiles.c:1.9 src/lib/libquota/quota_oldfiles.c:1.10 --- src/lib/libquota/quota_oldfiles.c:1.9 Fri Feb 24 18:00:09 2012 +++ src/lib/libquota/quota_oldfiles.c Tue Apr 26 15:36:42 2022 @@ -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 @@ __quota_oldfiles_defquotafile(struct quo (void)snprintf(buf, maxlen, "%s/%s.%s", qh->qh_mountpoint, - QUOTAFILENAME, names[USRQUOTA]); + QUOTAFILENAME, names[idtype]); } const char *