tmpdir: port to VMS, to // != /, and to long dirs
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 15 Jul 2013 16:44:19 +0000 (09:44 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 15 Jul 2013 16:44:49 +0000 (09:44 -0700)
commit84dd1ea9a61f4fe3cba7e7483b4c50a753711c02
tree68a117fa2521b074dbafd286d6a877ba7f7d21a4
parentda8d59ee79138b85daee1ad5b22ea12e4fb6ce47
tmpdir: port to VMS, to // != /, and to long dirs

* lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
__secure_getenv, so that we're more like the glibc version.
All uses changed.
(path_search): Don't put slash after directory if __VMS.
Problem reported by Steven M. Schweda in
<http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00019.html>.
Do not remove trailing slash from "//".
Do not assume dlen <= INT_MAX.
ChangeLog
lib/tmpdir.c