Merge pull request #435 from freedge/groupdelcore

groupdel: fix SIGSEGV when passwd does not exist
pull/446/head
Serge Hallyn 1 year ago committed by GitHub
commit 02916e9cb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      libmisc/prefix_flag.c

@ -288,6 +288,9 @@ extern struct passwd* prefix_getpwent()
if (!passwd_db_file) {
return getpwent();
}
if (!fp_pwent) {
return NULL;
}
return fgetpwent(fp_pwent);
}
extern void prefix_endpwent()

Loading…
Cancel
Save