From: Paweł Gołaszewski Date: Tue, 17 Jul 2001 17:35:19 +0000 (+0000) Subject: - change uid of arpd-demon X-Git-Tag: arpd-1_0_2-5~11 X-Git-Url: http://git.pld-linux.org/?p=packages%2Farpd.git;a=commitdiff_plain;h=24546bce0bacf56cd52f3c15175c1b04cb8bf36c - change uid of arpd-demon Changed files: arpd-uid.patch -> 1.1 --- diff --git a/arpd-uid.patch b/arpd-uid.patch new file mode 100644 index 0000000..ed4c29f --- /dev/null +++ b/arpd-uid.patch @@ -0,0 +1,17 @@ +--- ./arpd.c.orig Tue Jul 17 18:46:39 2001 ++++ ./arpd.c Tue Jul 17 19:24:22 2001 +@@ -74,9 +74,13 @@ + + openlog ("arpd", LOG_PID | LOG_CONS, LOG_DAEMON); + +- syslog(LOG_NOTICE, "Initializing, version %s\n", ARPD_VERSION); ++ syslog(LOG_NOTICE, "Initializing, PLD-modified version %s\n", ARPD_VERSION); + + fd = open("/dev/arpd", O_RDWR); ++/* You need to have user UID=40 in your system. There is needed to make checking ++ * that "little" thing. */ ++ setuid(40); ++ + if (fd < 0) { + syslog(LOG_CRIT, "cannot open /dev/arpd: %m"); + exit(-1);