]> git.pld-linux.org Git - packages/arpd.git/blame - arpd-uid.patch
- replace non-existent %chkconfig_{post,preun} macros with
[packages/arpd.git] / arpd-uid.patch
CommitLineData
24546bce
PG
1--- ./arpd.c.orig Tue Jul 17 18:46:39 2001
2+++ ./arpd.c Tue Jul 17 19:24:22 2001
3@@ -74,9 +74,13 @@
4
5 openlog ("arpd", LOG_PID | LOG_CONS, LOG_DAEMON);
6
7- syslog(LOG_NOTICE, "Initializing, version %s\n", ARPD_VERSION);
8+ syslog(LOG_NOTICE, "Initializing, PLD-modified version %s\n", ARPD_VERSION);
9
10 fd = open("/dev/arpd", O_RDWR);
11+/* You need to have user UID=40 in your system. There is needed to make checking
12+ * that "little" thing. */
13+ setuid(40);
14+
15 if (fd < 0) {
16 syslog(LOG_CRIT, "cannot open /dev/arpd: %m");
17 exit(-1);
This page took 0.10351 seconds and 4 git commands to generate.