]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/other/radius/radius.cpp
Added ability to optionally transfer resetable value to a real var.
[stg.git] / projects / stargazer / plugins / other / radius / radius.cpp
index 68a96d29a73037afe400e65d2512c0bd03e0128a..376e427860fd18e7eb5d07d501fbba57e498c935 100644 (file)
@@ -176,6 +176,9 @@ int RADIUS::createUNIX() const
         m_logger(m_error);
         return 0;
     }
+    chown(m_config.bindAddress.c_str(), m_config.sockUID, m_config.sockGID);
+    if (m_config.sockMode != static_cast<mode_t>(-1))
+        chmod(m_config.bindAddress.c_str(), m_config.sockMode);
     return fd;
 }