Commit 30ba266a authored by Wilfredo Sanchez's avatar Wilfredo Sanchez
Browse files

Fix trivial but thoroughly annoying bug with the test for

Configuration.tmpl being newer than Configuration. If both files are
created within a minute of each other (eg. when using APACI and shadow
trees), ls -lt is unable to resolve the difference and orders them as
specified on the command line. For example, on Linux:

[calloway:ttypa:/tmp] tritan% touch 1 2
[calloway:ttypa:/tmp] tritan% ls -lt 1 2
-rw-r--r--   1 tritan   mit             0 May  3 20:52 1
-rw-r--r--   1 tritan   mit             0 May  3 20:52 2
[calloway:ttypa:/tmp] tritan% ls -lt 2 1
-rw-r--r--   1 tritan   mit             0 May  3 20:52 2
-rw-r--r--   1 tritan   mit             0 May  3 20:52 1
[calloway:ttypa:/tmp] tritan% touch 2
[calloway:ttypa:/tmp] tritan% ls -lt 1 2
-rw-r--r--   1 tritan   mit             0 May  3 20:53 2
-rw-r--r--   1 tritan   mit             0 May  3 20:52 1
[calloway:ttypa:/tmp] tritan% ls -lt 2 1
-rw-r--r--   1 tritan   mit             0 May  3 20:53 2
-rw-r--r--   1 tritan   mit             0 May  3 20:52 1

Change the code to fail safe in this case.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@83174 13f79535-47bb-0310-9956-ffa450edef68
parent 24c7caa7
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment