You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2018/11/24 15:41:06 UTC

[GitHub] matthiasblaesing closed pull request #1028: [NETBEANS-1727] Native Execution does not correctly sanitize username for temp directory

matthiasblaesing closed pull request #1028: [NETBEANS-1727] Native Execution does not correctly sanitize username for temp directory
URL: https://github.com/apache/incubator-netbeans/pull/1028
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/ide/dlight.nativeexecution/release/bin/nativeexecution/hostinfo.sh b/ide/dlight.nativeexecution/release/bin/nativeexecution/hostinfo.sh
index af0e61dda5..eb85297deb 100755
--- a/ide/dlight.nativeexecution/release/bin/nativeexecution/hostinfo.sh
+++ b/ide/dlight.nativeexecution/release/bin/nativeexecution/hostinfo.sh
@@ -116,7 +116,7 @@ wx_fail() {
 
 USER=${USER:-`logname 2>/dev/null`}
 USER=${USER:-${USERNAME}}
-USER_D=`echo ${USER} | sed "s/\\\/_/"`
+USER_D=`echo ${USER} | sed "s/[\\/]/_/g"`
 TMPBASE=${TMPBASE:-/var/tmp}
 
 SUFFIX=0


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists