mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
8892b0cc92
The underlying function should return -1 and set errno when given invalid strings, but we were not looking and have decided on 0 for error. It would be a pain to change this function to return -1. Apart from the API fuss, it is sometimes used unchecked to set an unsigned number and an unchecked 0 is better than UINT*_MAX in those contexts. It is probably not easy to get an -1 from a timegm() -- most implementations will happily convert overflows for you, so e.g. the 15th month would be March of the next year. But EOVERFLOW is mentioned in the manpages. Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> |
||
---|---|---|
.. | ||
attrib_handlers.c | ||
ldb_attributes.c | ||
ldb_controls.c | ||
ldb_debug.c | ||
ldb_dn.c | ||
ldb_ldif.c | ||
ldb_match.c | ||
ldb_modules.c | ||
ldb_msg.c | ||
ldb_options.c | ||
ldb_pack.c | ||
ldb_parse.c | ||
ldb_utf8.c | ||
ldb.c | ||
qsort.c |