mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Use a #define to refer to /etc/crontab.
This commit is contained in:
parent
e482025ebd
commit
405a44d326
1 changed files with 2 additions and 2 deletions
|
|
@ -202,8 +202,8 @@ parse_args(argc, argv)
|
|||
if (!strcmp(Filename, "-")) {
|
||||
NewCrontab = stdin;
|
||||
} else if (realpath(Filename, resolved_path) != NULL &&
|
||||
!strcmp(resolved_path, "/etc/crontab")) {
|
||||
err(ERROR_EXIT, "/etc/crontab must be edited manually");
|
||||
!strcmp(resolved_path, SYSCRONTAB)) {
|
||||
err(ERROR_EXIT, SYSCRONTAB " must be edited manually");
|
||||
} else {
|
||||
/* relinquish the setuid status of the binary during
|
||||
* the open, lest nonroot users read files they should
|
||||
|
|
|
|||
Loading…
Reference in a new issue