1- From a4bfbec5d33090c094fafdd249f248a628ca8899 Mon Sep 17 00:00:00 2001
1+ From cc682646acf080fac61788e1193efdb1775d3b2a Mon Sep 17 00:00:00 2001
22From: Claudio Jeker <claudio@openbsd.org>
33Date: Tue, 14 Apr 2020 22:43:56 +0200
44Subject: [PATCH 1/4] Allow overriding default user and file locations
@@ -10,10 +10,10 @@ Adjust version string for -portable
1010 2 files changed, 26 insertions(+), 8 deletions(-)
1111
1212diff --git src/usr.sbin/rpki-client/extern.h src/usr.sbin/rpki-client/extern.h
13- index 514dfea85..0bf10bfc7 100644
13+ index d1d6baae6..7d47f9f49 100644
1414--- src/usr.sbin/rpki-client/extern.h
1515+++ src/usr.sbin/rpki-client/extern.h
16- @@ -1028 ,10 +1028 ,27 @@ time_t get_current_time(void);
16+ @@ -1024 ,10 +1024 ,27 @@ time_t get_current_time(void);
1717 int mkpath(const char *);
1818 int mkpathat(int, const char *);
1919
@@ -43,10 +43,10 @@ index 514dfea85..0bf10bfc7 100644
4343 /* Interval in which random reinitialization to an RRDP snapshot happens. */
4444 #define RRDP_RANDOM_REINIT_MAX 12 /* weeks */
4545diff --git src/usr.sbin/rpki-client/main.c src/usr.sbin/rpki-client/main.c
46- index 315ed1915..90bae8eca 100644
46+ index ff88a70c4..7473bb93a 100644
4747--- src/usr.sbin/rpki-client/main.c
4848+++ src/usr.sbin/rpki-client/main.c
49- @@ -830 ,7 +830 ,7 @@ sum_repostats(const struct repo *rp, const struct repostats *in, void *arg)
49+ @@ -842 ,7 +842 ,7 @@ sum_repostats(const struct repo *rp, const struct repostats *in, void *arg)
5050 }
5151
5252 /*
@@ -55,7 +55,7 @@ index 315ed1915..90bae8eca 100644
5555 * returning the number of files found and filled-in.
5656 * This may be zero.
5757 * Don't exceed "max" filenames.
58- @@ -838 ,7 +838 ,7 @@ sum_repostats(const struct repo *rp, const struct repostats *in, void *arg)
58+ @@ -850 ,7 +850 ,7 @@ sum_repostats(const struct repo *rp, const struct repostats *in, void *arg)
5959 static int
6060 tal_load_default(void)
6161 {
@@ -64,7 +64,7 @@ index 315ed1915..90bae8eca 100644
6464 int s = 0;
6565 char *path;
6666 DIR *dirp;
67- @@ -1007 ,7 +1007 ,7 @@ main(int argc, char *argv[])
67+ @@ -1019 ,7 +1019 ,7 @@ main(int argc, char *argv[])
6868 struct pollfd pfd[NPFD];
6969 struct msgbuf *queues[NPFD];
7070 struct ibuf *b;
@@ -73,7 +73,7 @@ index 315ed1915..90bae8eca 100644
7373 char *bind_addr = NULL;
7474 const char *cachedir = NULL, *outputdir = NULL;
7575 const char *errs, *name;
76- @@ -1030 ,9 +1030 ,9 @@ main(int argc, char *argv[])
76+ @@ -1043 ,9 +1043 ,9 @@ main(int argc, char *argv[])
7777 if (getuid() == 0) {
7878 struct passwd *pw;
7979
@@ -85,7 +85,7 @@ index 315ed1915..90bae8eca 100644
8585 if (setgroups(1, &pw->pw_gid) == -1 ||
8686 setresgid(pw->pw_gid, pw->pw_gid, pw->pw_gid) == -1 ||
8787 setresuid(pw->pw_uid, pw->pw_uid, pw->pw_uid) == -1)
88- @@ -1126 ,7 +1126 ,8 @@ main(int argc, char *argv[])
88+ @@ -1139 ,7 +1139 ,8 @@ main(int argc, char *argv[])
8989 verbose++;
9090 break;
9191 case 'V':
@@ -95,7 +95,7 @@ index 315ed1915..90bae8eca 100644
9595 return 0;
9696 case 'x':
9797 experimental = 1;
98- @@ -1176 ,7 +1177 ,7 @@ main(int argc, char *argv[])
98+ @@ -1191 ,7 +1192 ,7 @@ main(int argc, char *argv[])
9999 if (talsz == 0)
100100 talsz = tal_load_default();
101101 if (talsz == 0)
@@ -105,5 +105,5 @@ index 315ed1915..90bae8eca 100644
105105 /* Load optional constraint files sitting next to the TALs. */
106106 constraints_load();
107107- -
108- 2.50.1
108+ 2.52.0
109109
0 commit comments