]> git.draconx.ca Git - gentoo-draconx.git/blob - app-crypt/acme-client/files/acme-client-1.3.1-allow-nonroot.patch
app-crypt/acme-client: New package.
[gentoo-draconx.git] / app-crypt / acme-client / files / acme-client-1.3.1-allow-nonroot.patch
1 diff --git a/usr.sbin/acme-client/main.c b/usr.sbin/acme-client/main.c
2 index 073f917..c95ded1 100644
3 --- a/usr.sbin/acme-client/main.c
4 +++ b/usr.sbin/acme-client/main.c
5 @@ -84,11 +84,6 @@ main(int argc, char *argv[])
6                         goto usage;
7                 }
8  
9 -#if !ENABLE_TEST_BUILD
10 -       if (getuid() != 0)
11 -               errx(EXIT_FAILURE, "must be run as root");
12 -#endif
13 -
14         /* parse config file */
15         if ((conf = parse_config(conffile, popts)) == NULL)
16                 return EXIT_FAILURE;