1 From 9218347b8f833ab05d016dfba5617dcdeb59eb7b Mon Sep 17 00:00:00 2001
2 From: Cole Helbling <cole.e.helbling@outlook.com>
3 Date: Wed, 27 May 2020 08:02:57 -0700
4 Subject: [PATCH] add NixOS-specific dirs to safe PATH
8 1 file changed, 1 insertion(+)
10 diff --git a/doas.c b/doas.c
11 index e253905..2fdb20f 100644
14 @@ -234,6 +234,7 @@ int
15 main(int argc, char **argv)
17 const char *safepath = "/bin:/sbin:/usr/bin:/usr/sbin:"
18 + "/run/wrappers/bin:/run/current-system/sw/bin:/run/current-system/sw/sbin:"
19 "/usr/local/bin:/usr/local/sbin";
20 const char *confpath = NULL;
21 char *shargv[] = { NULL, NULL };