do_command.c (7828) | do_command.c (8857) |
---|---|
1/* Copyright 1988,1990,1993,1994 by Paul Vixie 2 * All rights reserved 3 * 4 * Distribute freely, except: don't remove my name from the source or 5 * documentation (don't take credit for my work), mark your changes (don't 6 * get me blamed for your possible bugs), don't alter or remove this 7 * notice. May be sold if buildable source is provided to buyer. No 8 * warrantee of any kind, express or implied, is included with this 9 * software; use at your own risk, responsibility for damages (if any) to 10 * anyone resulting from the use of this software rests entirely with the 11 * user. 12 * 13 * Send bug reports, bug fixes, enhancements, requests, flames, etc., and 14 * I'll try to keep a version up to date. I can be reached as follows: 15 * Paul Vixie <paul@vix.com> uunet!decwrl!vixie!paul 16 */ 17 18#if !defined(lint) && !defined(LINT) | 1/* Copyright 1988,1990,1993,1994 by Paul Vixie 2 * All rights reserved 3 * 4 * Distribute freely, except: don't remove my name from the source or 5 * documentation (don't take credit for my work), mark your changes (don't 6 * get me blamed for your possible bugs), don't alter or remove this 7 * notice. May be sold if buildable source is provided to buyer. No 8 * warrantee of any kind, express or implied, is included with this 9 * software; use at your own risk, responsibility for damages (if any) to 10 * anyone resulting from the use of this software rests entirely with the 11 * user. 12 * 13 * Send bug reports, bug fixes, enhancements, requests, flames, etc., and 14 * I'll try to keep a version up to date. I can be reached as follows: 15 * Paul Vixie <paul@vix.com> uunet!decwrl!vixie!paul 16 */ 17 18#if !defined(lint) && !defined(LINT) |
19static char rcsid[] = "$Id: do_command.c,v 1.3 1995/04/13 20:58:13 ache Exp $"; | 19static char rcsid[] = "$Id: do_command.c,v 1.4 1995/04/14 21:54:18 ache Exp $"; |
20#endif 21 22 23#include "cron.h" 24#include <sys/signal.h> 25#if defined(sequent) 26# include <sys/universe.h> 27#endif --- 81 unchanged lines hidden (view full) --- 109 */ 110 (void) signal(SIGCLD, SIG_DFL); 111#endif /*BSD*/ 112 113 /* create some pipes to talk to our future child 114 */ 115 pipe(stdin_pipe); /* child's stdin */ 116 pipe(stdout_pipe); /* child's stdout */ | 20#endif 21 22 23#include "cron.h" 24#include <sys/signal.h> 25#if defined(sequent) 26# include <sys/universe.h> 27#endif --- 81 unchanged lines hidden (view full) --- 109 */ 110 (void) signal(SIGCLD, SIG_DFL); 111#endif /*BSD*/ 112 113 /* create some pipes to talk to our future child 114 */ 115 pipe(stdin_pipe); /* child's stdin */ 116 pipe(stdout_pipe); /* child's stdout */ |
117 | 117 |
118 /* since we are a forked process, we can diddle the command string 119 * we were passed -- nobody else is going to use it again, right? 120 * 121 * if a % is present in the command, previous characters are the 122 * command, and subsequent characters are the additional input to 123 * the command. Subsequent %'s will be transformed into newlines, 124 * but that happens later. 125 */ --- 223 unchanged lines hidden (view full) --- 349 */ 350 mailto = NULL; 351 } 352 } else { 353 /* MAILTO not present, set to USER. 354 */ 355 mailto = usernm; 356 } | 118 /* since we are a forked process, we can diddle the command string 119 * we were passed -- nobody else is going to use it again, right? 120 * 121 * if a % is present in the command, previous characters are the 122 * command, and subsequent characters are the additional input to 123 * the command. Subsequent %'s will be transformed into newlines, 124 * but that happens later. 125 */ --- 223 unchanged lines hidden (view full) --- 349 */ 350 mailto = NULL; 351 } 352 } else { 353 /* MAILTO not present, set to USER. 354 */ 355 mailto = usernm; 356 } |
357 | 357 |
358 /* if we are supposed to be mailing, MAILTO will 359 * be non-NULL. only in this case should we set 360 * up the mail command and subjects and stuff... 361 */ 362 363 if (mailto) { 364 register char **env; 365 auto char mailcmd[MAX_COMMAND]; --- 136 unchanged lines hidden --- | 358 /* if we are supposed to be mailing, MAILTO will 359 * be non-NULL. only in this case should we set 360 * up the mail command and subjects and stuff... 361 */ 362 363 if (mailto) { 364 register char **env; 365 auto char mailcmd[MAX_COMMAND]; --- 136 unchanged lines hidden --- |