projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
From http://www.jwz.org/xscreensaver/xscreensaver-5.30.tar.gz
[xscreensaver]
/
driver
/
lock.c
diff --git
a/driver/lock.c
b/driver/lock.c
index 564998450828f78af6d9f9375b72795f300c6bf9..7c92be60d6375bda6dbb69c47191d1ab833919ef 100644
(file)
--- a/
driver/lock.c
+++ b/
driver/lock.c
@@
-2193,6
+2193,11
@@
auth_finished_cb (saver_info *si)
s = buf;
}
si->unlock_failures = 0;
s = buf;
}
si->unlock_failures = 0;
+
+ /* ignore failures if they all were too recent */
+ if (time((time_t *) 0) - si->unlock_failure_time
+ < si->prefs.auth_warning_slack)
+ goto END;
}
else /* good, with no failures, */
goto END; /* or timeout, or cancel. */
}
else /* good, with no failures, */
goto END; /* or timeout, or cancel. */