You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
calculate-overlay/sys-process/vixie-cron/files/vixie-cron-4.1-basename.diff

21 lines
479 B

diff --exclude='*~' -urN vixie-cron-4.1.orig/cron.c vixie-cron-4.1/cron.c
--- vixie-cron-4.1.orig/cron.c 2005-02-23 02:05:30.730975808 -0500
+++ vixie-cron-4.1/cron.c 2005-02-23 02:07:13.233393072 -0500
@@ -25,6 +25,7 @@
#define MAIN_PROGRAM
+#include <libgen.h>
#include "cron.h"
enum timejump { negative, small, medium, large };
@@ -61,7 +62,7 @@
cron_db database;
int fd;
- ProgramName = argv[0];
+ ProgramName = basename(argv[0]);
setlocale(LC_ALL, "");