Opened 4 years ago

#14572 new defect

Tinc config file log location and debug level not recognized

Reported by: sgk@… Owned by: developers
Priority: normal Milestone: Attitude Adjustment 12.09.1
Component: packages Version: Trunk
Keywords: tinc Cc:


The "option log" and "option debug" options in "/etc/config/tinc" file do not work. They just enable debug mode, the log file location and the debug level are ignored.

The reason is a bug in "/etc/init.d/tinc", which prepares "tincd" command line arguments like "--log /path/to/file". It must be "--log=/path/to/file".

I could successfully make it work correctly by following patch. I am sorry that I have not yet fully tested.

--- /etc/init.d/tinc
+++ /etc/init.d/tinc
@@ -42,7 +42,7 @@
 		config_get v "$s" "$p"
 		for v in $v; do
-			[ -n "$v" ] && append_param "$p" && ARGS="$ARGS $v"
+			[ -n "$v" ] && append_param "$p" && ARGS="$ARGS=$v"
 		unset IFS

Attachments (0)

Change History (0)

Add Comment

Modify Ticket

as new .

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.