[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/09: syscalls: 'getxattr' throws upon error.
From: |
guix-commits |
Subject: |
06/09: syscalls: 'getxattr' throws upon error. |
Date: |
Mon, 27 Mar 2023 12:52:23 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 836297eae5ebe5fd0d434056db64770acc3f3275
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Mon Mar 27 12:01:05 2023 +0200
syscalls: 'getxattr' throws upon error.
* guix/build/syscalls.scm (getxattr): Throw in the negative SIZE case.
---
guix/build/syscalls.scm | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/guix/build/syscalls.scm b/guix/build/syscalls.scm
index df9b9f6ac7..d947b010d3 100644
--- a/guix/build/syscalls.scm
+++ b/guix/build/syscalls.scm
@@ -970,7 +970,10 @@ backend device."
(string->pointer key)
(string->pointer "")
0)))
- (cond ((< size 0) #f)
+ (cond ((< size 0)
+ (throw 'system-error "getxattr" "~S: ~A"
+ (list file key (strerror err))
+ (list err)))
((zero? size) "")
;; Get VALUE in buffer of SIZE. XXX actual size can race.
(else (let*-values (((buf) (make-bytevector size))
- branch master updated (da410b45a9 -> c9af27d4ca), guix-commits, 2023/03/27
- 04/09: substitute: Gracefully handle TLS termination while fetching narinfos., guix-commits, 2023/03/27
- 05/09: gnu: hevea: Update to 2.36., guix-commits, 2023/03/27
- 01/09: services: syslog: Add 'configuration' action., guix-commits, 2023/03/27
- 06/09: syscalls: 'getxattr' throws upon error.,
guix-commits <=
- 03/09: services: ntpd: Add 'configuration' action., guix-commits, 2023/03/27
- 09/09: lint: Append "/info/refs" to git-reference-url., guix-commits, 2023/03/27
- 02/09: services: network-manager: Add 'configuration' action., guix-commits, 2023/03/27
- 07/09: lint: Prevent inlining of 'package-vulnerabilities'., guix-commits, 2023/03/27
- 08/09: gnu: Add atftp., guix-commits, 2023/03/27