| 1 | From 04b412e10d7176764490121b621d0d3be347b31a Mon Sep 17 00:00:00 2001
|
| 2 | From: Issam Maghni <[email protected]>
|
| 3 | Date: Thu, 6 May 2021 19:26:42 +0000
|
| 4 | Subject: [PATCH] Add missing second equal symbol for comparaison
|
| 5 |
|
| 6 | Due to this bug, the `if` statement is always entered.
|
| 7 | ---
|
| 8 | pam_rundir.c | 2 +-
|
| 9 | 1 file changed, 1 insertion(+), 1 deletion(-)
|
| 10 |
|
| 11 | Patch-Source: https://github.com/jjk-jacky/pam_rundir/pull/5
|
| 12 |
|
| 13 | diff --git a/pam_rundir.c b/pam_rundir.c
|
| 14 | index 2d2c201..67c7ca6 100644
|
| 15 | |
| 16 | |
| 17 | @@ -197,7 +197,7 @@ write_counter (int fd, int count)
|
| 18 | r = write (fd, buf + w, l - w);
|
| 19 | if (r < 0)
|
| 20 | {
|
| 21 | - if (errno = EINTR)
|
| 22 | + if (errno == EINTR)
|
| 23 | continue;
|
| 24 | if (w > 0)
|
| 25 | emergency_invalidate_counter (fd);
|