depot/third_party/nixpkgs/pkgs/tools/system/fcron/relative-fcronsighup.patch
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

16 lines
643 B
Diff

Use relative fcronsighup to prefer setuid executable over package binary.
--- fcron-3.2.1.orig/fcrontab.c 2016-06-26 17:02:48.000000000 +0200
+++ fcron-3.2.1/fcrontab.c 2017-03-05 21:54:24.676871335 +0100
@@ -154,10 +154,10 @@
fcrontab_gid);
exit(ERR);
}
- execl(BINDIREX "/fcronsighup", BINDIREX "/fcronsighup", fcronconf,
+ execlp("fcronsighup", "fcronsighup", fcronconf,
NULL);
- error_e("Could not exec " BINDIREX " fcronsighup");
+ error_e("Could not exec fcronsighup");
exit(ERR);
break;