Jordi Sanfeliu
2018-07-13 10:15:46 UTC
Hello,
The following fixes a fall-through that prevented from reading the next
entry in the UTMP file and terminated the program with an abort().
diff --git a/newlib/libc/unix/getut.c b/newlib/libc/unix/getut.c
index c3a9b62..89ed739 100644
--- a/newlib/libc/unix/getut.c
+++ b/newlib/libc/unix/getut.c
@@ -65,6 +65,7 @@ getutid (struct utmp *id)
case DEAD_PROCESS:
if (id->ut_id == utmp_data.ut_id)
return &utmp_data;
+ break;
default:
abort ();
}
Thanks.
The following fixes a fall-through that prevented from reading the next
entry in the UTMP file and terminated the program with an abort().
diff --git a/newlib/libc/unix/getut.c b/newlib/libc/unix/getut.c
index c3a9b62..89ed739 100644
--- a/newlib/libc/unix/getut.c
+++ b/newlib/libc/unix/getut.c
@@ -65,6 +65,7 @@ getutid (struct utmp *id)
case DEAD_PROCESS:
if (id->ut_id == utmp_data.ut_id)
return &utmp_data;
+ break;
default:
abort ();
}
Thanks.
--
Jordi Sanfeliu
FIBRANET Network Services Provider
https://www.fibranet.cat
Jordi Sanfeliu
FIBRANET Network Services Provider
https://www.fibranet.cat