mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-05-07 09:45:55 +02:00
substitute: Sanitize the client-provided column number.
* guix/scripts/substitute.scm (client-terminal-columns): Sanitize the client's column number.
This commit is contained in:
@@ -981,7 +981,9 @@ found."
|
||||
default value."
|
||||
(or (and=> (or (find-daemon-option "untrusted-terminal-columns")
|
||||
(find-daemon-option "terminal-columns"))
|
||||
string->number)
|
||||
(lambda (str)
|
||||
(let ((number (string->number str)))
|
||||
(and number (max 20 (- number 1))))))
|
||||
80))
|
||||
|
||||
(define (guix-substitute . args)
|
||||
|
||||
Reference in New Issue
Block a user