Changeset 3909


Ignore:
Timestamp:
Oct 24, 2014, 10:58:42 AM (10 years ago)
Author:
bird
Message:

trunk,0.6: Fixed regression in system() from the ticket #287 changes.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified branches/libc-0.6/src/emx/src/lib/process/system.c

    r3859 r3909  
    11/* $Id: b_processSetResourceLimit.c 3770 2012-03-15 20:02:46Z bird $ */
    22/** @file
    3  * kNIX - get default shell for system() and popen().
     3 * kNIX - system().
    44 *
    55 * @copyright   Copyright (C) 2014 knut st. osmundsen <bird-klibc-spam-xiv@anduin.net>
     
    3535        if (pszCmdLine == 0)
    3636            rc = access(szShell, F_OK) == 0;
    37         else if (*pszCmdLine)
     37        else if (!*pszCmdLine) /* EMX speciality? */
    3838            rc = spawnlp(P_WAIT, szShell, &szShell[offShellArg], (void *)NULL);
    3939        else
  • TabularUnified trunk/libc/src/libc/process/system.c

    r3881 r3909  
    11/* $Id$ */
    22/** @file
    3  * kNIX - get default shell for system() and popen().
     3 * kNIX - system().
    44 *
    55 * @copyright   Copyright (C) 2014 knut st. osmundsen <bird-klibc-spam-xiv@anduin.net>
     
    3535        if (pszCmdLine == 0)
    3636            rc = access(szShell, F_OK) == 0;
    37         else if (*pszCmdLine)
     37        else if (!*pszCmdLine) /* EMX speciality? */
    3838            rc = spawnlp(P_WAIT, szShell, &szShell[offShellArg], (void *)NULL);
    3939        else
Note: See TracChangeset for help on using the changeset viewer.