Blame SOURCES/shadow-4.9-groupdel-fix-sigsegv-when-passwd-does-not-exist.patch

2de3ab
diff -up shadow-4.9/libmisc/prefix_flag.c.groupdel-fix-sigsegv-when-passwd-does-not-exist shadow-4.9/libmisc/prefix_flag.c
2de3ab
--- shadow-4.9/libmisc/prefix_flag.c.groupdel-fix-sigsegv-when-passwd-does-not-exist	2021-11-19 09:21:36.997091941 +0100
2de3ab
+++ shadow-4.9/libmisc/prefix_flag.c	2021-11-19 09:22:19.001341010 +0100
2de3ab
@@ -288,6 +288,9 @@ extern struct passwd* prefix_getpwent()
2de3ab
 	if(!passwd_db_file) {
2de3ab
 		return getpwent();
2de3ab
 	}
2de3ab
+	if (!fp_pwent) {
2de3ab
+		return NULL;
2de3ab
+	}
2de3ab
 	return fgetpwent(fp_pwent);
2de3ab
 }
2de3ab
 extern void prefix_endpwent()