Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37788131
en ru br
ALT Linux repos
S:1.0.24.0.53.git0d87511-alt2

Group :: Networking/Other
RPM: diod

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: diod-alt-rundir.patch
Download


diff --git a/diod/diod.c b/diod/diod.c
index a95386d..7262640 100644
--- a/diod/diod.c
+++ b/diod/diod.c
@@ -348,7 +348,7 @@ _daemonize (void)
 {
     char rdir[PATH_MAX];
 
-    snprintf (rdir, sizeof(rdir), "%s/run/diod", X_LOCALSTATEDIR);
+    snprintf (rdir, sizeof(rdir), "/run/diod");
     if (mkdir (rdir, 0755) < 0 && errno != EEXIST) {
         msg ("failed to find/create %s, running out of /tmp", rdir);
         snprintf (rdir, sizeof(rdir), "/tmp");
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin