nixpkgs/pkgs/by-name/fc/fcron/relative-fcronsighup.patch
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

17 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;