]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fix up Debian patch
authorNick Porter <nick@portercomputing.co.uk>
Mon, 24 Feb 2025 15:24:51 +0000 (15:24 +0000)
committerNick Porter <nick@portercomputing.co.uk>
Mon, 24 Feb 2025 15:24:51 +0000 (15:24 +0000)
Until the main config gets re-named

debian/patches/radiusd-to-freeradius.diff

index 4b0a28b3bb2400a9e8f700a3194abf228b3cdf30..155a274436ec790131a78cb0ecb1c35a7cb21539 100644 (file)
@@ -78,22 +78,17 @@ Index: freeradius-server/src/bin/radiusd.c
 ===================================================================
 --- freeradius-server.orig/src/bin/radiusd.c
 +++ freeradius-server/src/bin/radiusd.c
-@@ -230,14 +230,11 @@ int main(int argc, char *argv[])
-       }
+@@ -319,7 +319,12 @@ int main(int argc, char *argv[])
+                EXIT_WITH_FAILURE;
+        }
  
-       /*
--       *      Set some default values
++      /*
 +       *
 +       *      Debian changes the binary name to "freeradius", but
 +       *      leaves the configuration file as "radiusd.conf".
-        */
--      program = strrchr(argv[0], FR_DIR_SEP);
--      if (!program) {
--              program = argv[0];
--      } else {
--              program++;
--      }
-+      program = "radiusd";
-       main_config_name_set_default(config, program, false);
++       */
+-       main_config_name_set_default(config, program, false);
++       main_config_name_set_default(config, "radiusd", false);
  
-       config->daemonize = true;
+        config->daemonize = true;
+        config->spawn_workers = true;