Bugzilla – Attachment 2427 Details for
Bug 2228
ssh-agent passwords do not timeout properly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Try CLOCK_BOOTTIME with fallback
clock_boottime.diff (text/plain), 945 bytes, created by
Damien Miller
on 2014-04-17 09:40:48 AEST
(
hide
)
Description:
Try CLOCK_BOOTTIME with fallback
Filename:
MIME Type:
Creator:
Damien Miller
Created:
2014-04-17 09:40:48 AEST
Size:
945 bytes
patch
obsolete
>Index: misc.c >=================================================================== >RCS file: /var/cvs/openssh/misc.c,v >retrieving revision 1.121 >diff -u -p -r1.121 misc.c >--- misc.c 15 Oct 2013 01:14:12 -0000 1.121 >+++ misc.c 16 Apr 2014 23:39:29 -0000 >@@ -858,17 +858,22 @@ ms_to_timeval(struct timeval *tv, int ms > time_t > monotime(void) > { >-#if defined(HAVE_CLOCK_GETTIME) && defined(CLOCK_MONOTONIC) >+#if defined(HAVE_CLOCK_GETTIME) && \ >+ (defined(CLOCK_MONOTONIC) || defined(CLOCK_BOOTTIME)) > struct timespec ts; > static int gettime_failed = 0; > > if (!gettime_failed) { >+#if defined(CLOCK_BOOTTIME) >+ if (clock_gettime(CLOCK_BOOTTIME, &ts) == 0) >+ return (ts.tv_sec); >+#endif > if (clock_gettime(CLOCK_MONOTONIC, &ts) == 0) > return (ts.tv_sec); > debug3("clock_gettime: %s", strerror(errno)); > gettime_failed = 1; > } >-#endif >+#endif /* HAVE_CLOCK_GETTIME && (CLOCK_MONOTONIC || CLOCK_BOOTTIME */ > > return time(NULL); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 2228
:
2425
| 2427