vuls: init at 0.27.0 (#348530)
[NixPkgs.git] / pkgs / tools / system / fcron / relative-fcronsighup.patch
blobc0bbfc1ee3ef4b40acddcd3c9b60ccd413920a88
1 Use relative fcronsighup to prefer setuid executable over package binary.
2 --- fcron-3.2.1.orig/fcrontab.c 2016-06-26 17:02:48.000000000 +0200
3 +++ fcron-3.2.1/fcrontab.c 2017-03-05 21:54:24.676871335 +0100
4 @@ -154,10 +154,10 @@
5 fcrontab_gid);
6 exit(ERR);
8 - execl(BINDIREX "/fcronsighup", BINDIREX "/fcronsighup", fcronconf,
9 + execlp("fcronsighup", "fcronsighup", fcronconf,
10 NULL);
12 - error_e("Could not exec " BINDIREX " fcronsighup");
13 + error_e("Could not exec fcronsighup");
14 exit(ERR);
15 break;