]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Hard-code the default name to radiusd.
authorAlan T. DeKok <aland@freeradius.org>
Tue, 3 Nov 2015 14:38:16 +0000 (09:38 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 3 Nov 2015 14:39:07 +0000 (09:39 -0500)
Because debian renames the binaries and configuration directory,
but *not* the configuration file

debian/patches/radiusd-to-freeradius.diff

index 9cac4c723c5eda2f77db847481b6802dcdf2ed21..b3625f892e74520ffc8523df77cee683cd13dcfa 100644 (file)
  
        #
        #  Access mode.
+diff --git a/src/main/radiusd.c b/src/main/radiusd.c
+index 1ae66ec..ee1a711 100644
+--- a/src/main/radiusd.c
++++ b/src/main/radiusd.c
+@@ -93,7 +93,6 @@ int main(int argc, char *argv[])
+       bool display_version = false;
+       int flag = 0;
+       int from_child[2] = {-1, -1};
+-      char *p;
+       fr_state_t *state = NULL;
+
+       /*
+@@ -128,13 +127,7 @@ int main(int argc, char *argv[])
+       main_config.myip.af = AF_UNSPEC;
+       main_config.port = 0;
+       main_config.daemonize = true;
+-
+-      p = strrchr(argv[0], FR_DIR_SEP);
+-      if (!p) {
+-              main_config.name = argv[0];
+-      } else {
+-              main_config.name = p + 1;
+-      }
++      main_config.name = "radiusd";
+
+       /*
+        *      Don't put output anywhere until we get told a little