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.
This commit is contained in:
hannken 2022-04-26 15:36:42 +00:00
parent 5823a2adcd
commit 48747c6894
1 changed files with 3 additions and 3 deletions

View File

@ -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 quotahandle *qh, int idtype,
(void)snprintf(buf, maxlen, "%s/%s.%s",
qh->qh_mountpoint,
QUOTAFILENAME, names[USRQUOTA]);
QUOTAFILENAME, names[idtype]);
}
const char *