Subject: Re: bug#64119: [PATCH] services: shepherd: Sanitize 'provision' field.
From: Ludovic Courtès <[email-masked]>
To: Bruno Victal <[email-masked]>
Cc: [email-masked], [email-masked], [email-masked]
Date: Sun, 25 Jun 2023 23:44:53 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Bruno Victal <[email-masked]> skribis:

> +(define (sanitize-shepherd-service-provision expr)
> +  (match expr
> +    (((? symbol?) ..1) expr)
> +    (_
> +     (raise
> +      (formatted-message
> +       (G_ "'provision' must be a non-empty list of symbols"))))))

Actually I figured we could do as in other areas of the code in a way
that reports error location, so I came up with a different patch.

Ludo’.