]> git.pld-linux.org Git - packages/arpd.git/commitdiff
- change uid of arpd-demon
authorPaweł Gołaszewski <blues@pld-linux.org>
Tue, 17 Jul 2001 17:35:19 +0000 (17:35 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    arpd-uid.patch -> 1.1

arpd-uid.patch [new file with mode: 0644]

diff --git a/arpd-uid.patch b/arpd-uid.patch
new file mode 100644 (file)
index 0000000..ed4c29f
--- /dev/null
@@ -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);
This page took 0.033122 seconds and 4 git commands to generate.