summary refs log tree commit diff
path: root/doc
diff options
context:
space:
mode:
authorJohn Kehayias <john.kehayias@protonmail.com>2022-02-15 20:09:09 -0500
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2022-02-23 23:14:23 -0500
commit50311f338f2b68336d9197502d039fb5cf718906 (patch)
tree8cd92a83bb2eb65a6fc73cd6e669479c73b81bdb /doc
parent3609dcd200059dee96fedc02dedca2b352345757 (diff)
downloadguix-50311f338f2b68336d9197502d039fb5cf718906.tar.gz
doc: Fix 'setuid-program' example.
%setuid-programs was previously moved to be in the list sexp instead of just
the append one. This causes an "invalid G-expression input" error.

Error reported by: Kolev on #guix.

* doc/guix.texi (Setuid Programs): Move %setuid-programs out to the append
sexp.

Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/guix.texi4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index 528760d7f6..2a08fa05a5 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -34592,8 +34592,8 @@ previous example to your operating system declaration by appending it to
   ;; Some fields omitted...
   (setuid-programs
     (append (list (setuid-program
-                    (program (file-append nfs-utils "/sbin/mount.nfs")))
-                  %setuid-programs))))
+                    (program (file-append nfs-utils "/sbin/mount.nfs"))))
+            %setuid-programs)))
 @end lisp
 
 @deftp {Data Type} setuid-program