[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/10: daemon: Improve error message in ‘checkStoreName’.
From: |
guix-commits |
Subject: |
02/10: daemon: Improve error message in ‘checkStoreName’. |
Date: |
Sun, 17 Nov 2024 18:22:13 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit cf10268a7783207aec30e0169b61362df0d2512d
Author: Brennan Vincent <brennan@umanwizard.com>
AuthorDate: Mon Sep 23 07:21:07 2024 -0400
daemon: Improve error message in ‘checkStoreName’.
* nix/libstore/store-api.cc (checkStoreName): Clarify message when NAME
starts with a dot.
Change-Id: I045a663bc6cd9844677c65b38a31d3941cf212b5
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
nix/libstore/store-api.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/nix/libstore/store-api.cc b/nix/libstore/store-api.cc
index 781fb9e693..38a1403a71 100644
--- a/nix/libstore/store-api.cc
+++ b/nix/libstore/store-api.cc
@@ -61,7 +61,7 @@ void checkStoreName(const string & name)
/* Disallow names starting with a dot for possible security
reasons (e.g., "." and ".."). */
if (string(name, 0, 1) == ".")
- throw Error(format("invalid name: `%1%'") % name);
+ throw Error(format("invalid name: `%1%' (can't begin with dot)") %
name);
foreach (string::const_iterator, i, name)
if (!((*i >= 'A' && *i <= 'Z') ||
(*i >= 'a' && *i <= 'z') ||
- branch master updated (916c08c465 -> e37ee527a0), guix-commits, 2024/11/17
- 03/10: gnu: Add guile-taglib., guix-commits, 2024/11/17
- 04/10: gnu: openssh: Update to 9.9p1., guix-commits, 2024/11/17
- 06/10: gnu: impressive: Update to 13.2 and fix build, guix-commits, 2024/11/17
- 07/10: gnu: bloomberg-bde-tools: Update to 4.13.0.0., guix-commits, 2024/11/17
- 08/10: gnu: bloomberg-bde: Update to 4.14.0.0., guix-commits, 2024/11/17
- 01/10: gnu: hunspell-dictionary: Update to 24.8.2.1., guix-commits, 2024/11/17
- 02/10: daemon: Improve error message in ‘checkStoreName’.,
guix-commits <=
- 09/10: gnu: coq-mathcomp-bigenough: Use new style., guix-commits, 2024/11/17
- 10/10: gnu: coq-mathcomp-bigenough: Use native-inputs., guix-commits, 2024/11/17
- 05/10: gnu: pypandoc: Update to 1.14, guix-commits, 2024/11/17