GNU bug report logs - #70670
[PATCH 0/2] Fix tftp-unique-root option for service dnsmasq

Previous Next

Package: guix-patches;

Reported by: Jean-Baptiste Note <jean-baptiste.note <at> m4x.org>

Date: Tue, 30 Apr 2024 12:59:02 UTC

Severity: normal

Tags: patch

To reply to this bug, email your comments to 70670 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to , guix-patches <at> gnu.org:
bug#70670; Package guix-patches. (Tue, 30 Apr 2024 12:59:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jean-Baptiste Note <jean-baptiste.note <at> m4x.org>:
New bug report received and forwarded. Copy sent to , guix-patches <at> gnu.org. (Tue, 30 Apr 2024 12:59:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jean-Baptiste Note <jean-baptiste.note <at> m4x.org>
To: guix-patches <at> gnu.org
Cc: Jean-Baptiste Note <jean-baptiste.note <at> m4x.org>
Subject: [PATCH 0/2] Fix tftp-unique-root option for service dnsmasq
Date: Tue, 30 Apr 2024 12:57:35 +0000
The tftp-unique-root option, though well-documented, currently does not work
for me when passing it a string. Fix the option and try to improve the
documentation related to it.

Jean-Baptiste Note (2):
  services: dnsmasq: Fix tftp-unique-root option.
  doc: Augment dnsmasq-service-type documentation.

 doc/guix.texi        | 7 ++++++-
 gnu/services/dns.scm | 2 +-
 2 files changed, 7 insertions(+), 2 deletions(-)

-- 
2.41.0





Information forwarded to guix-patches <at> gnu.org:
bug#70670; Package guix-patches. (Tue, 30 Apr 2024 13:06:02 GMT) Full text and rfc822 format available.

Message #8 received at 70670 <at> debbugs.gnu.org (full text, mbox):

From: Jean-Baptiste Note <jean-baptiste.note <at> m4x.org>
To: 70670 <at> debbugs.gnu.org
Cc: Jean-Baptiste Note <jean-baptiste.note <at> m4x.org>
Subject: [PATCH 1/2] services: dnsmasq: Fix tftp-unique-root option.
Date: Tue, 30 Apr 2024 13:04:31 +0000
* 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 --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")))
                        '()))
-- 
2.41.0





Information forwarded to guix-patches <at> gnu.org:
bug#70670; Package guix-patches. (Tue, 30 Apr 2024 13:06:02 GMT) Full text and rfc822 format available.

Message #11 received at 70670 <at> debbugs.gnu.org (full text, mbox):

From: Jean-Baptiste Note <jean-baptiste.note <at> m4x.org>
To: 70670 <at> debbugs.gnu.org
Cc: Jean-Baptiste Note <jean-baptiste.note <at> m4x.org>
Subject: [PATCH 2/2] doc: Augment dnsmasq-service-type documentation.
Date: Tue, 30 Apr 2024 13:04:32 +0000
doc/guix.texi: Fix typo in --tftp-root logic description. Add paragraph about
the precise behaviour of the tftp-unique-root parameter.
---
 doc/guix.texi | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/doc/guix.texi b/doc/guix.texi
index 3f5d4e7f0d..3a9afcd814 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -33463,12 +33463,17 @@ format).
 For instance, if @option{--tftp-root} is @samp{/tftp} and client
 @samp{1.2.3.4} requests file @file{myfile} then the effective path will
 be @file{/tftp/1.2.3.4/myfile} if @file{/tftp/1.2.3.4} exists or
-@file{/tftp/myfile} otherwise.  When @samp{=mac} is specified it will
+@file{/tftp/myfile} otherwise.  When @samp{mac} is specified it will
 append the MAC address instead, using lowercase zero padded digits
 separated by dashes, e.g.: @samp{01-02-03-04-aa-bb}.  Note that
 resolving MAC addresses is only possible if the client is in the local
 network or obtained a DHCP lease from dnsmasq.
 
+The empty string yields a naked @option{--tftp-unique-root} argument to
+@command{dnsmasq}; any other string @samp{str} will yield
+@option{--tftp-unique-root=str}. Currently admissible values for
+@command{dnsmasq} are @samp{mac} and @samp{ip}.
+
 @end table
 @end deftp
 
-- 
2.41.0





This bug report was last modified 16 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.