1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 08:37:35 +00:00

LibC: Don't assert on unknown mode character in fopen()

Just carry on with some debug log whining.
Gets rid of one dropbear patch. :^)
This commit is contained in:
Andreas Kling 2020-06-08 21:57:13 +02:00
parent c88ea2f54a
commit a85506009f
2 changed files with 3 additions and 15 deletions

View file

@ -1,11 +0,0 @@
--- a/compat.c
+++ b/compat.c
@@ -244,7 +244,7 @@
if (strings != NULL)
free(strings);
strings = NULL;
- if ((fp = fopen("/etc/shells", "rc")) == NULL)
+ if ((fp = fopen("/etc/shells", "r")) == NULL)
return (char **) okshells;
if (fstat(fileno(fp), &statb) == -1) {
(void)fclose(fp);