https://bugs.openldap.org/show_bug.cgi?id=9638
Issue ID: 9638 Summary: ldapsearch.1 documents default value of -T inaccurately Product: OpenLDAP Version: 2.5.6 Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: --- Component: documentation Assignee: bugs@openldap.org Reporter: ryan@openldap.org Target Milestone: ---
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=992130
The ldapsearch.1 man page says the default value for tmpdir (-T) is /var/tmp.
The actual default value can come from a number of sources: environment variables (TMPDIR, TMP, TEMP), preprocessor macros (_P_tmpdir, P_tmpdir, _PATH_TMPDIR), or a hard-coded fallback (/tmp).
The ldapsearch --help output correctly reflects the default value.
It would be nice if the ldapsearch man page would reflect the actual compile-time default (LDAP_TMPDIR) and mention that it consults some environment variables.