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

---
 radvd.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

Index: radvd-1.8.3/radvd.c
===================================================================
--- radvd-1.8.3.orig/radvd.c
+++ radvd-1.8.3/radvd.c
@@ -200,6 +200,9 @@ main(int argc, char *argv[])
 		}
 	}
 
+	if (!username)
+		username = strdup("radvd");
+
 	if (chrootdir) {
 		if (!username) {
 			fprintf(stderr, "Chroot as root is not safe, exiting\n");
openSUSE Build Service is sponsored by