File 0001-run-as-user-radvd-by-default.diff of Package radvd
From 3ff72b5f5bccad1418441485177488f64dc4a135 Mon Sep 17 00:00:00 2001
From: Ludwig Nussel <ludwig.nussel@suse.de>
Date: Tue, 3 May 2011 15:42:36 +0200
Subject: [Patch 1/2] run as user radvd by default
Index: radvd-2.20/radvd.c
===================================================================
--- radvd-2.20.orig/radvd.c 2024-12-28 06:27:47.000000000 +0100
+++ radvd-2.20/radvd.c 2025-06-10 15:04:46.675364662 +0200
@@ -269,6 +269,9 @@ int main(int argc, char *argv[])
/* TODO: Seems like this chroot'ing should happen *after* daemonizing for
* the sake of the PID file. */
+ if (!username)
+ username = strdup("radvd");
+
if (chrootdir) {
if (!username) {
fprintf(stderr, "Chroot as root is not safe, exiting\n");