[cvsnt] bug: cvsservice.exe accesses info.dll as client user instead of service account

Brien b_gs at hotmail.com
Wed Jan 27 18:19:41 GMT 2010


Community technical support mailing list was retired 2010 and replaced with a professional technical support team. For assistance please contact: Pre-sales Technical support via email to sales@march-hare.com.


cvsnt 2.5.04.3510
os: win7 x64

accessing the cvs server from the local machine was failing:
Executable file 'C:\Program Files\CVSNT\triggers\info.dll' trust
verification failed - executable image not signed

The problem was that info.dll was being opened impersonating the user that
is running the command rather than the service user account.  This should be
changed.

Since on my installation, users do not have access to the CVSNT install dir,
all commands fail.


tracing the code, the call to WinVerifyTrust() was returning
TRUST_E_NOSIGNATURE.

the error message is misleading.  it can be due to an error opening the
file.  cvsnt needs a better error message for this case.  see
http://msdn.microsoft.com/en-us/library/aa382384%28VS.85%29.aspx .

       case TRUST_E_NOSIGNATURE:
            // The file was not signed or had a signature 
            // that was not valid.

            // Get the reason for no signature.
            dwLastError = GetLastError();
            if (TRUST_E_NOSIGNATURE == dwLastError ||
                    TRUST_E_SUBJECT_FORM_UNKNOWN == dwLastError ||
                    TRUST_E_PROVIDER_UNKNOWN == dwLastError) 
            {
                // The file was not signed.
                wprintf_s(L"The file \"%s\" is not signed.\n",
                    pwszSourceFile);
            } 
            else 
            {
                // The signature was not valid or there was an error 
                // opening the file.
                wprintf_s(L"An unknown error occurred trying to "
                    L"verify the signature of the \"%s\" file.\n",
                    pwszSourceFile);
            }




More information about the cvsnt mailing list
Download the latest CVSNT, TortosieCVS, WinCVS etc. for Windows 8 etc.
@CVSNT on Twitter   CVSNT on Facebook