emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#63979: closed (SHEPHERD-SERVICE-CANONICAL-NAME assumes a non-empty P


From: GNU bug Tracking System
Subject: bug#63979: closed (SHEPHERD-SERVICE-CANONICAL-NAME assumes a non-empty PROVISION, but such instantiation is allowed)
Date: Sun, 25 Jun 2023 21:46:02 +0000

Your message dated Sun, 25 Jun 2023 23:44:53 +0200
with message-id <87o7l3w71m.fsf@gnu.org>
and subject line Re: bug#64119: [PATCH] services: shepherd: Sanitize 
'provision' field.
has caused the debbugs.gnu.org bug report #63979,
regarding SHEPHERD-SERVICE-CANONICAL-NAME assumes a non-empty PROVISION, but 
such instantiation is allowed
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
63979: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=63979
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: SHEPHERD-SERVICE-CANONICAL-NAME assumes a non-empty PROVISION, but such instantiation is allowed Date: Fri, 09 Jun 2023 15:18:47 +0000
it's possible to instantiate a SHEPHERD-SERVICE with an empty list as 
PROVISION, but then much later in time and space 
SHEPHERD-SERVICE-CANONICAL-NAME dies on it.

-- 
• attila lendvai
• PGP: 963F 5D5F 45C7 DFCD 0A39
--
“You live within a framework of perception that's determined by your values. 
[…] We never think of the world as something that reveals itself through our 
values, but of course it does! Because you look at what you want. […] Whatever 
you're focusing on is directed by what you value.”
        — Jordan Peterson (1962–)




--- End Message ---
--- Begin Message --- Subject: Re: 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’.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]