Justin Hibbits ca05fff090 Change autounmountd(8) to use time_t for duration instead of double
Summary:
autounmountd(8) uses doubles to handle mount time durations.  However,
it must convert to integer types, time_t in particular, to do anything
meaningful.  Additionally, even though it's a floating-point value in
seconds, the sub-seconds component is never used, so it's unnecessary.

Switching type to time_t fixes an assertion on powerpc64, which checks
that a sleep value that's not -1.0 is greater than 0.  On powerpc64, it
happens that the value of -1.0 gets loaded as a float (perhaps a bug in
gcc), but gets compared to a double.  This compares as false, so follows
through the 'sleep != -1.0' path, and fails the assert.  Since the
sub-second component isn't used in the double, just drop it and deal
with whole-integer seconds.

Reviewed by:	trasz
Differential Revision: https://reviews.freebsd.org/D21109
2019-08-08 03:16:32 +00:00
..
2019-03-29 20:21:28 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2018-08-11 13:23:09 +00:00
2018-12-19 21:56:54 +00:00
2019-06-09 02:06:31 +00:00
2019-03-14 14:34:36 +00:00
2019-07-19 20:04:21 +00:00
2018-11-30 19:40:16 +00:00
2019-02-05 21:37:34 +00:00
2019-02-04 21:28:25 +00:00
2018-06-06 18:52:33 +00:00
2019-02-21 01:30:37 +00:00
2018-05-28 09:41:44 +00:00
2017-12-28 05:34:04 +00:00
2019-05-04 02:09:30 +00:00
2018-01-02 16:50:57 +00:00
2017-10-31 00:07:04 +00:00
2018-10-22 02:34:10 +00:00
2018-05-19 20:57:22 +00:00
2019-07-23 16:28:17 +00:00
2019-05-22 01:22:33 +00:00
2019-02-04 21:28:25 +00:00
2019-02-04 21:28:25 +00:00
2019-07-12 06:19:25 +00:00
2018-06-17 17:31:16 +00:00
2019-02-03 08:15:26 +00:00
2018-03-19 05:49:26 +00:00
2019-03-05 02:53:41 +00:00
2019-04-22 17:52:46 +00:00
2019-07-17 06:17:27 +00:00
2018-12-19 22:47:37 +00:00
2018-02-08 14:53:34 +00:00
2017-10-31 00:07:04 +00:00
2019-06-25 04:50:09 +00:00
2019-05-24 05:34:21 +00:00
2019-05-24 05:34:21 +00:00
2018-07-24 20:20:17 +00:00