diff mbox series

[bug#70670,1/2] services: dnsmasq: Fix tftp-unique-root option.

Message ID 20240430130449.7992-1-jean-baptiste.note@m4x.org
State New
Headers show
Series Fix tftp-unique-root option for service dnsmasq | expand

Commit Message

Jean-Baptiste Note April 30, 2024, 1:04 p.m. UTC
* gnu/services/dns.scm (dnsmasq-shepherd-service): tftp-unique-root is a
string and its length is taken with string-length.
---
 gnu/services/dns.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/gnu/services/dns.scm b/gnu/services/dns.scm
index 6608046909..ff169f4e8d 100644
--- a/gnu/services/dns.scm
+++ b/gnu/services/dns.scm
@@ -874,7 +874,7 @@  (define (dnsmasq-shepherd-service config)
                        '())
                 #$@(if tftp-unique-root
                        (list
-                        (if (> (length tftp-unique-root) 0)
+                        (if (> (string-length tftp-unique-root) 0)
                             (format #f "--tftp-unique-root=~a" tftp-unique-root)
                             (format #f "--tftp-unique-root")))
                        '()))