mirror of
https://github.com/samba-team/samba.git
synced 2025-02-28 01:58:17 +03:00
Returns 0xFFFFFFFF as (time_t)-1. This avoids misenterpreting 0xFFFFFFFF as a valid time_t value (0xFFFFFFFF = Sun 07 Feb 2106 06:28:15 AM GMT) on 64-bit platforms where time_t is 64-bit. Currently direct and indirect callers of pull_dos_date3() rely on the fact that the resulting time_t is checked with null_time() which also checks for 0xFFFFFFFF as sentinel value amongst 0 and -1: return t == 0 || t == (time_t)0xFFFFFFFF || t == (time_t)-1; By returning -1 instead of 0xFFFFFFFF, callers can safely pass the result to unix_to_nt_time() which *doesn't* check for 0xFFFFFFFF, only -1. BUG: https://bugzilla.samba.org/show_bug.cgi?id=7771 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
compression - Various compression algorithms (MSZIP, lzxpress) popt - Command-line option parsing library replace - Provides replacements for standard (POSIX, C99) functions not provided by the host platform. subunit - Utilities and bindings for working with the Subunit test result reporting protocol. talloc - Hierarchical pool based memory allocator tdb - Simple but fast key/value database library, supporting multiple writers torture - Simple unit testing helper library