|
From: | Ludovic Courtès |
Subject: | bug#63979: bug#64119: [PATCH] services: shepherd: Sanitize 'provision' field. |
Date: | Sun, 25 Jun 2023 23:44:53 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) |
Bruno Victal <mirai@makinata.eu> 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’.
[Prev in Thread] | Current Thread | [Next in Thread] |