summaryrefslogtreecommitdiffstats
path: root/src/privsep-root.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-01-22 12:00:10 +0000
committerRoy Marples <roy@marples.name>2020-01-22 12:00:10 +0000
commit730ce26da503f523748c7910558fc769131779ac (patch)
treef3120fdc353d45f5dbfa9d04805b46500ec386d4 /src/privsep-root.c
parenteed9c74e6c37ed1ddb549e9894fb21aee5704209 (diff)
downloaddhcpcd-730ce26da503f523748c7910558fc769131779ac.tar.xz
logging: Always log to syslog(3).
--logfile may not work that well in a chroot on receipt of SIGUSR2 because the path is of course different. Might have to drop this option soon as I have no good ideas on how to resolve it :(
Diffstat (limited to 'src/privsep-root.c')
-rw-r--r--src/privsep-root.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/privsep-root.c b/src/privsep-root.c
index 747852be..71b4bebb 100644
--- a/src/privsep-root.c
+++ b/src/privsep-root.c
@@ -206,8 +206,8 @@ ps_root_run_script(struct dhcpcd_ctx *ctx, const void *data, size_t len)
#define st_atimespec st_atim
#define st_mtimespec st_mtim
#endif
-static ssize_t
-ps_root_docopy(struct dhcpcd_ctx *ctx, const char *file)
+ssize_t
+ps_root_docopychroot(struct dhcpcd_ctx *ctx, const char *file)
{
char path[PATH_MAX], buf[BUFSIZ], *slash;
@@ -300,7 +300,7 @@ ps_root_dofileop(struct dhcpcd_ctx *ctx, void *data, size_t len, uint8_t op)
switch(op) {
case PS_COPY:
- return ps_root_docopy(ctx, path);
+ return ps_root_docopychroot(ctx, path);
case PS_UNLINK:
return (ssize_t)unlink(path);
default: