[cpp-sp] branch master updated: SSPCPP-729 Workout around windows bug in %~dp0

Rod Widdowson rdw at steadingsoftware.com
Mon Jan 29 09:43:34 EST 2018


This is an automated email from the git hooks/post-receive script.

rdw pushed a commit to branch master
in repository cpp-sp.

View the commit online:
http://git.shibboleth.net/view/?p=cpp-sp.git;a=commit;h=b55e4473414754c8f3e68255426f199b4087c93e

The following commit(s) were added to refs/heads/master by this push:
       new  b55e447   SSPCPP-729 Workout around windows bug in %~dp0
b55e447 is described below

commit b55e4473414754c8f3e68255426f199b4087c93e
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Mon Jan 29 14:40:56 2018 +0000

    SSPCPP-729 Workout around windows bug in %~dp0
    
    https://issues.shibboleth.net/jira/browse/SSPCPP-729
    
    As diagnosed by customer, having a URL at the end of a line
    causes $~dp0 to get confused when everything has been shifted away.
    
    Grab the value before any shift operations.
---
 configs/keygen.bat | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/configs/keygen.bat b/configs/keygen.bat
index 88485f2..53a7fe1 100644
--- a/configs/keygen.bat
+++ b/configs/keygen.bat
@@ -8,9 +8,11 @@ set ENTITYID=
 set TEMP_DOMAIN_NAME=
 set PARAM=
 set PREFIX=
+set OUT=%~dp0
 
 :opt_start
 set PARAM=%1
+
 if not defined PARAM goto opt_end
 if %1==-o goto opt_out
 if %1==-n goto opt_prefix
@@ -21,7 +23,6 @@ if %1==-f goto opt_force
 goto usage
 :opt_end
 
-if not defined OUT set OUT=%~dp0
 if not defined PREFIX set PREFIX=sp
 
 if exist "%OUT%\%PREFIX%-key.pem" goto protect

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list