mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-19 12:03:02 -04:00
sys-auth/mrsh: new package
Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
20
sys-auth/mrsh/files/union-wait-deprecated.diff
Normal file
20
sys-auth/mrsh/files/union-wait-deprecated.diff
Normal file
@@ -0,0 +1,20 @@
|
||||
--- a/mrlogin/mrlogin.c 2016-04-29 19:22:08.000000000 +0200
|
||||
+++ b/mrlogin/mrlogin.c 2019-10-29 02:25:39.095172149 +0100
|
||||
@@ -476,7 +476,7 @@
|
||||
void
|
||||
catch_child(int ignore)
|
||||
{
|
||||
- union wait status;
|
||||
+ int status;
|
||||
int pid;
|
||||
|
||||
(void)ignore;
|
||||
@@ -487,7 +487,7 @@
|
||||
return;
|
||||
/* if the child (reader) dies, just quit */
|
||||
if (pid < 0 || (pid == childpid && !WIFSTOPPED(status)))
|
||||
- done((int)(status.w_termsig | status.w_retcode));
|
||||
+ done((int)(WTERMSIG(status) | WEXITSTATUS(status)));
|
||||
}
|
||||
/* NOTREACHED */
|
||||
}
|
||||
Reference in New Issue
Block a user