[BACK]Return to popen.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mail

Diff for /src/usr.bin/mail/popen.c between version 1.27 and 1.28

version 1.27, 2001/09/04 23:16:11 version 1.28, 2001/11/20 23:19:44
Line 136 
Line 136 
                 fd1 = -1;                  fd1 = -1;
         }          }
         sigemptyset(&nset);          sigemptyset(&nset);
         if ((pid = start_command(value("SHELL"), &nset, fd0, fd1,          /*
                                                 "-c", cmd, NULL)) < 0) {           * If cmd contains meta chars wrap it in a shell.
            */
           if (strpbrk(cmd, "$&*(){}[]'\";\\|?<>~`"))
                   pid = start_command(value("SHELL"), &nset, fd0, fd1,
                       "-c", cmd, NULL);
           else
                   pid = start_command(cmd, &nset, fd0, fd1, NULL);
           if (pid < 0) {
                 (void)close(p[READ]);                  (void)close(p[READ]);
                 (void)close(p[WRITE]);                  (void)close(p[WRITE]);
                 return(NULL);                  return(NULL);

Legend:
Removed from v.1.27  
changed lines
  Added in v.1.28