Hi Jan, This patch is needed to avoid "quota -v -P 123" from crashing if /etc/projid does not exist. Cheers, - Ted >From b5edd1734a69364d614140273b812dc50d61842c Mon Sep 17 00:00:00 2001 From: Theodore Ts'o <tytso@xxxxxxx> Date: Tue, 5 Jul 2016 21:16:43 -0400 Subject: [PATCH] Don't crash if /etc/projid file does not exist In endprent(), if project_file is NULL, don't try to fclose it, or else glibc will not be amused. Signed-off-by: Theodore Ts'o <tytso@xxxxxxx> --- quotasys.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/quotasys.c b/quotasys.c index c78e02c..fb40230 100644 --- a/quotasys.c +++ b/quotasys.c @@ -98,6 +98,8 @@ void setprent(void) /* Close /etc/projid file */ void endprent(void) { + if (!project_file) + return; fclose(project_file); project_file = NULL; } -- 2.5.0 -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html