[shibboleth-sp2] 15/100: Fixed service uninstall.

Ferenc Wágner wferi-guest at moszumanska.debian.org
Tue Jan 26 21:29:13 UTC 2016


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

wferi-guest pushed a commit to annotated tag 1.2.1
in repository shibboleth-sp2.

commit 634e21e495bd6dbd6e5ec4c2be047d6d1dca293a
Author: Scott Cantor <cantor.2 at osu.edu>
Date:   Sun Aug 22 22:14:29 2004 +0000

    Fixed service uninstall.
---
 shar/shar_win32.cpp | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/shar/shar_win32.cpp b/shar/shar_win32.cpp
index 9c7dc64..1fb36b8 100644
--- a/shar/shar_win32.cpp
+++ b/shar/shar_win32.cpp
@@ -418,7 +418,7 @@ void CmdInstallService(LPCSTR name)
 
         if ( schService )
         {
-            printf("%s installed.\n",name);
+            printf("%s installed.\n",realName);
             CloseServiceHandle(schService);
         }
         else
@@ -447,7 +447,7 @@ void CmdRemoveService(LPCSTR name)
                         );
     if ( schSCManager )
     {
-        schService = OpenService(schSCManager, name, SERVICE_ALL_ACCESS);
+        schService = OpenService(schSCManager, realName, SERVICE_ALL_ACCESS);
 
         if (schService)
         {
@@ -469,15 +469,15 @@ void CmdRemoveService(LPCSTR name)
                 }
 
                 if ( ssStatus.dwCurrentState == SERVICE_STOPPED )
-                    printf("\n%s stopped.\n", name);
+                    printf("\n%s stopped.\n", realName);
                 else
-                    printf("\n%s failed to stop.\n", name);
+                    printf("\n%s failed to stop.\n", realName);
 
             }
 
             // now remove the service
             if( DeleteService(schService) )
-                printf("%s removed.\n", name);
+                printf("%s removed.\n", realName);
             else
                 printf("DeleteService failed - %s\n", GetLastErrorText(szErr,256));
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-shibboleth/shibboleth-sp2.git



More information about the Pkg-shibboleth-devel mailing list