File: 02-conffile.patch

package info (click to toggle)
cdrdao 1%3A1.2.5-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,236 kB
  • sloc: cpp: 51,492; ansic: 33,096; sh: 4,720; perl: 673; makefile: 446; xml: 70
file content (22 lines) | stat: -rw-r--r-- 687 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Description: Add /etc/default/cdrdao to the set of config files read.
Author: Andrew Suffield <asuffield@debian.org>
Forwarded: https://github.com/cdrdao/cdrdao/pull/39
Reviewed-by: Sven Geuer <sge@debian.org>
Last-Update: 2025-08-22
---
 dao/main.cc | 4 ++++
 1 file changed, 4 insertions(+)

--- a/dao/main.cc
+++ b/dao/main.cc
@@ -2458,6 +2458,10 @@
     if (settings->read(settingsPath) == 0)
 	log_message(3, "Read settings from \"%s\".", settingsPath);
 
+    settingsPath = "/etc/default/cdrdao";
+    if (settings->read(settingsPath) == 0)
+	log_message(3, "Read settings from \"%s\".", settingsPath);
+
     settingsPath = NULL;
 
     if ((homeDir = getenv("HOME")) != NULL) {