projects/aports·blob master · refs

25 lines · 855 B

1From 04b412e10d7176764490121b621d0d3be347b31a Mon Sep 17 00:00:00 2001
2From: Issam Maghni <[email protected]>
3Date: Thu, 6 May 2021 19:26:42 +0000
4Subject: [PATCH] Add missing second equal symbol for comparaison
5
6Due to this bug, the `if` statement is always entered.
7---
8 pam_rundir.c | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
10
11Patch-Source: https://github.com/jjk-jacky/pam_rundir/pull/5
12
13diff --git a/pam_rundir.c b/pam_rundir.c
14index 2d2c201..67c7ca6 100644
15--- a/pam_rundir.c
16+++ b/pam_rundir.c
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);