1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 18:58:12 +00:00

Minor fixes in getgrent() and getpwent() function families.

This commit is contained in:
Andreas Kling 2018-11-07 00:32:38 +01:00
parent 8135952832
commit d3bd3791cb
2 changed files with 6 additions and 6 deletions

View file

@ -88,7 +88,7 @@ next_entry:
assert(__pwdb_stream);
if (feof(__pwdb_stream))
return nullptr;
String line(s);
String line(s, Chomp);
auto parts = line.split(':');
if (parts.size() != 7) {
fprintf(stderr, "getpwent(): Malformed entry on line %u\n", __pwdb_line_number);