newlines; it doesn't work with the new stdio
From: Jan-Simon Pendry <pendry@vangogh.CS.Berkeley.EDU>
SCCS-vsn: usr.bin/at/atrun/atrun.c 5.10
#endif /* not lint */
#ifndef lint
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)atrun.c 8.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)atrun.c 5.10 (Berkeley) %G%";
* Grab the 4-line header out of the spoolfile.
*/
if (
* Grab the 4-line header out of the spoolfile.
*/
if (
- (fscanf(infile,"# owner: %127s%*[^\n]\n",owner) != 1) ||
- (fscanf(infile,"# jobname: %127s%*[^\n]\n",jobname) != 1) ||
- (fscanf(infile,"# shell: %3s%*[^\n]\n",shell) != 1) ||
- (fscanf(infile,"# notify by mail: %3s%*[^\n]\n",mailvar) != 1)
+ (fscanf(infile,"# owner: %127s\n",owner) != 1) ||
+ (fscanf(infile,"# jobname: %127s\n",jobname) != 1) ||
+ (fscanf(infile,"# shell: %3s\n",shell) != 1) ||
+ (fscanf(infile,"# notify by mail: %3s\n",mailvar) != 1)
) {
fprintf(stderr, "%s: bad spool header\n", spoolfile);
(void) unlink(spoolfile);
) {
fprintf(stderr, "%s: bad spool header\n", spoolfile);
(void) unlink(spoolfile);