Changeset 7747 for trunk/tools


Ignore:
Timestamp:
Jan 9, 2002, 1:29:57 AM (24 years ago)
Author:
bird
Message:

Corrected minor bug.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/CmdQd/CmdQd.c

    r7594 r7747  
    1 /* $Id: CmdQd.c,v 1.12 2001-12-09 16:11:13 bird Exp $
     1/* $Id: CmdQd.c,v 1.13 2002-01-09 00:29:57 bird Exp $
    22 *
    33 * Command Queue Daemon / Client.
     
    15731573                DosReleaseMutexSem(hmtxExec);
    15741574                pJobOutput->cchOutput += sprintf(&pJobOutput->szOutput[pJobOutput->cchOutput ],
    1575                                                  "Failed to set current directory to: %s\n",
    1576                                                  pJob->JobInfo.szCurrentDir);
     1575                                                 "Failed to set current directory to: %s (rc=%d)\n",
     1576                                                 pJob->JobInfo.szCurrentDir, rc);
    15771577                pJob->rc = -1;
    15781578                DosClose(hPipeR);
     
    16671667     */
    16681668    if (    strchr(pszCommand, '&')
    1669         ||  strchr(pszCommand, '|'))
     1669        ||  strchr(pszCommand, '|')
     1670        ||  strchr(pszCommand, '@'))
    16701671    {
    16711672        strcpy(pszArg, "cmd.exe");      /* doesn't use comspec, just defaults to cmd.exe in all cases. */
     
    17251726        {   /* relative path - expand it and check for file existence */
    17261727            fileNormalize(pszArg, pszCurDir);
     1728            pszCurDir[strlen(pszCurDir)-1] = '\0'; /* remove slash */
    17271729            rc = fileExist(pszArg);
    17281730        }
Note: See TracChangeset for help on using the changeset viewer.