Re: svn commit: r345126 - /httpd/mod_python/trunk/test/test.py
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache Mod-Python > Re: svn commit: r345126 - /httpd/mod_python/trunk/test/test.py




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Re: svn commit: r345126 - /httpd/mod_python/trunk/test/test.py  
Jim Gallacher


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-16-05 10:47 PM

nlehuen@apache.org wrote:
> Author: nlehuen
> Date: Wed Nov 16 13:15:06 2005
> New Revision: 345126
>
> URL: http://svn.apache.org/viewcvs?rev=345126&view=rev
> Log:
> Perform quoting AFTER the test for file existence... Otherwise with spaces in Apac
he path, the test for file existence will always fail since the system call with be 
done with the quotes (tested under Win32).

Yes, of course. I wasn't thinking there.

Would it be more logical to shift the quoteIfSpace call out of
get_ab_path and back into test_global_lock?

The quotes are required to create the cmd string in that function and
are not part of ab_path after all. Since we can't be sure how
get_ab_path might be used in the future, it may be best to leave the
quoting to the calling function.

Jim

> Modified:
>     httpd/mod_python/trunk/test/test.py
>
> Modified: httpd/mod_python/trunk/test/test.py
> URL: http://svn.apache.org/viewcvs/httpd...45126&view=diff
>  ========================================
==================================
====
> --- httpd/mod_python/trunk/test/test.py (original)
> +++ httpd/mod_python/trunk/test/test.py Wed Nov 16 13:15:06 2005
> @@ -166,9 +166,9 @@
>      """ Find the location of the ab (apache benchmark) program """
>      ab = None
>      for name in ['ab', 'ab2']:
> -        path = quoteIfSpace(os.path.join(os.path.split(HTTPD)[0], nam
e))
> +        path = os.path.join(os.path.split(HTTPD)[0], name)
>          if os.path.exists(path):
> -            ab = path
> +            ab = quoteIfSpace(path)
>              break
>
>      return ab
>
>







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 08:00 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register