You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by co...@apache.org on 2010/06/02 22:44:24 UTC

svn commit: r950755 - /httpd/mod_ftp/trunk/configure.apxs

Author: covener
Date: Wed Jun  2 20:44:24 2010
New Revision: 950755

URL: http://svn.apache.org/viewvc?rev=950755&view=rev
Log:
instead of adding another escape, protect the backrefs as they're passed to sed.

/bin/dash on debian/ubuntu was getting 0x01 instead of the backref passed to sed:

Tested on /bin/dash, /bin/bash on Linux (fcgid/ftp) and /bin/sh, /usr/xpg4/bin/sh on Solaris (fcgid only).

Submitted by: Eric Covener, Igor Galić
Reviewed by: Eric Covener


Modified:
    httpd/mod_ftp/trunk/configure.apxs

Modified: httpd/mod_ftp/trunk/configure.apxs
URL: http://svn.apache.org/viewvc/httpd/mod_ftp/trunk/configure.apxs?rev=950755&r1=950754&r2=950755&view=diff
==============================================================================
--- httpd/mod_ftp/trunk/configure.apxs (original)
+++ httpd/mod_ftp/trunk/configure.apxs Wed Jun  2 20:44:24 2010
@@ -117,8 +117,7 @@ cd ..
 if test "x$found_features" = "x"; then
   cp modules/ftp/ftp_config.h.in modules/ftp/ftp_config.h
 else
-  found_features="`echo \"$found_features\" | sed -e '#s*/#*\\$/#g;'`"
-  eval sed $found_features < modules/ftp/ftp_config.h.in \
+  eval sed "$found_features" < modules/ftp/ftp_config.h.in \
                            > modules/ftp/ftp_config.h
 fi