Date: Sun, 15 Dec 1996 11:59:13 -0700 (MST) From: Marc Slemko <marcs@znep.com> To: stable@freebsd.org Subject: someone please commit this fix for crontab hole Message-ID: <Pine.BSF.3.95.961215115526.1095D-100000@alive.ampr.ab.ca>
next in thread | raw e-mail | index | archive | help
Can someone please commit this (well, I don't care what fix it is but this is just the fix from -current) to -stable. Tested, works. Index: crontab.c =================================================================== RCS file: /usr/cvs/src/usr.sbin/cron/crontab/crontab.c,v retrieving revision 1.4 retrieving revision 1.5 diff -c -r1.4 -r1.5 *** crontab.c 1996/04/09 20:28:16 1.4 --- crontab.c 1996/08/05 00:31:27 1.5 *************** *** 167,173 **** ProgramName, optarg); exit(ERROR_EXIT); } ! (void) strcpy(User, optarg); break; case 'l': if (Option != opt_unknown) --- 167,173 ---- ProgramName, optarg); exit(ERROR_EXIT); } ! (void) snprintf(User, sizeof(user), "%s", optarg); break; case 'l': if (Option != opt_unknown) *************** *** 198,204 **** } else { if (argv[optind] != NULL) { Option = opt_replace; ! (void) strcpy (Filename, argv[optind]); } else { usage("file name must be specified for replace"); } --- 198,205 ---- } else { if (argv[optind] != NULL) { Option = opt_replace; ! (void) snprintf(Filename, sizeof(Filename), "%s", ! argv[optind]); } else { usage("file name must be specified for replace"); } *************** *** 480,486 **** ProgramName, Filename); goto done; default: ! fprintf(stderr, "%s: panic: bad switch() in replace_cmd()\n"); goto fatal; } remove: --- 481,488 ---- ProgramName, Filename); goto done; default: ! fprintf(stderr, "%s: panic: bad switch() in replace_cmd()\n", ! ProgramName); goto fatal; } remove:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95.961215115526.1095D-100000>