mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-27 04:59:27 -05:00
guix: shell: Don't whitelist / by typo in `shell-authorized-directories'.
Fixes <https://issues.guix.gnu.org/65832>. * guix/scripts/shell.scm (authorized-shell-directory?): After warning, continue LOOP to return valid query result for DIRECTORY.
This commit is contained in:
parent
4dd33fc628
commit
1ef4974be9
1 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
;;; GNU Guix --- Functional package management for GNU
|
||||
;;; Copyright © 2021-2023 Ludovic Courtès <ludo@gnu.org>
|
||||
;;; Copyright © 2023 Janneke Nieuwenhuizen <janneke@gnu.org>
|
||||
;;;
|
||||
;;; This file is part of GNU Guix.
|
||||
;;;
|
||||
|
@ -232,7 +233,8 @@ (define (authorized-shell-directory? directory)
|
|||
(port-line port)
|
||||
(port-column port))))
|
||||
(warning loc (G_ "ignoring invalid file name: '~a'~%")
|
||||
line))))))))))
|
||||
line)
|
||||
(loop))))))))))
|
||||
(const #f)))
|
||||
|
||||
(define (options-with-caching opts)
|
||||
|
|
Loading…
Reference in a new issue