GNU bug report logs -
#30817
[PATCH] openssh-service: export AcceptEnv option
Previous Next
Full log
View this message in rfc822 format
Hello,
Martin Castillo <castilma <at> uni-bremen.de> skribis:
> This patch makes AcceptEnv configurable from config.scm.
Nice!
> Questions:
> Is the dash in environment-variables correct?
No, just “environment variables”.
> Why are there always two spaces after a period?
It’s inherited from an (old) convention honored by Emacs notably that
mimics English typographic conventions regarding spacing after
end-of-sentence periods.
> Is @option the correct annotation for AcceptEnv?
@option is normally for command-line option, so I’d just use @code.
> From e64e4a908936c5aec0c026324cc08be12edb8ec1 Mon Sep 17 00:00:00 2001
> From: Martin Castillo <castilma <at> uni-bremen.de>
> Date: Tue, 13 Mar 2018 16:40:55 +0100
> Subject: [PATCH] services: openssh: Add 'AcceptEnv' field.
>
> * gnu/services/ssh.scm (<openssh-configuration>)[AcceptEnv]: New field.
> (openssh-config-file): Honor 'AcceptEnv'.
> * doc/guix.texi (Networking Services): Document it.
Overall the patch LGTM, so the comments below are really nitpicking:
> +@item @code{accept-env} (default: @code{'()})
> +List of strings describing which environment-variables may be exported.
> +
> +Each string gets on its own line. See the @option{AcceptEnv} option in
> +@code{sshd_config(5)}.
I’d write “… in @code{man sshd_config(5)}.”
> +@example
> +(service openssh-service-type
> + (openssh-configuration
> + (accept-env '("COLORTERM"))))
> +@end example
Please add a sentence describing the example, even if it seems obvious.
> + ;; list of strings
> + (accept-env openssh-configuration-accept-env
> + (default '()))
We usually avoid abbreviations, so that would be “accepted-environment”
(see <https://gnu.org/software/guix/manual/html_node/Formatting-Code.html>).
Could you send an updated patch?
Thanks,
Ludo’.
This bug report was last modified 7 years and 121 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.