]> git.draconx.ca Git - gentoo-draconx.git/blobdiff - 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
diff --git a/app-crypt/acme-client/files/acme-client-1.3.1-allow-nonroot.patch b/app-crypt/acme-client/files/acme-client-1.3.1-allow-nonroot.patch
new file mode 100644 (file)
index 0000000..e6ccc45
--- /dev/null
@@ -0,0 +1,16 @@
+diff --git a/usr.sbin/acme-client/main.c b/usr.sbin/acme-client/main.c
+index 073f917..c95ded1 100644
+--- a/usr.sbin/acme-client/main.c
++++ b/usr.sbin/acme-client/main.c
+@@ -84,11 +84,6 @@ main(int argc, char *argv[])
+                       goto usage;
+               }
+-#if !ENABLE_TEST_BUILD
+-      if (getuid() != 0)
+-              errx(EXIT_FAILURE, "must be run as root");
+-#endif
+-
+       /* parse config file */
+       if ((conf = parse_config(conffile, popts)) == NULL)
+               return EXIT_FAILURE;