HardenedBSD/stand/libsa
Warner Losh 525e6d6c89 loader/zfs: Fix to actually return the last error
The last fix, to try to return the last error, really returns the first
return code after the last error, which could be zero. Instead, return
the last error. Also, change rc to err to make it visually distinct from
rv, which is the cause of my error in e54bb0ad80.

Reported by:		Bill Sommerfeld <sommerfeld@hamachi.org>
Fixes:			e54bb0ad80
Sponsored by:		Netflix
2024-02-29 09:12:21 -07:00
..
amd64 stand: Remove ancient SCCS tags. 2023-11-26 22:23:29 -07:00
geli libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
i386 Remove $FreeBSD$: one-line .S pattern 2023-08-16 11:54:57 -06:00
powerpc stand: Use modern function definitions 2024-01-28 13:04:31 -07:00
x86 libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
zfs loader/zfs: Fix to actually return the last error 2024-02-29 09:12:21 -07:00
__main.c stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
abort.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
arp.c stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
assert.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
bcd.c stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
bootp.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
bootp.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
bootparam.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
bootparam.h Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
bzipfs.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
cd9660.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
cd9660read.c stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
close.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
closeall.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
crc32_libkern.c Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
dev.c stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
dosfs.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
dosfs.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
environment.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
ether.c stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
ext2fs.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
features.c loader: provide a features table for binary compatibility advertisement 2023-12-08 15:43:19 -06:00
fstat.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
getopt.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
gets.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
globals.c stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
gpt.c stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
gpt.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
gzipfs.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
hexdump.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
in_cksum.c stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
inet_ntoa.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
ioctl.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
iodesc.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
ip.c stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
libsa.3 loader: provide a features table for binary compatibility advertisement 2023-12-08 15:43:19 -06:00
lseek.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
Makefile libsa: Move hash functions up a level 2024-02-02 14:01:03 -07:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
mount.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
net.c stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
net.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
netif.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
netif.h Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
nfs.c stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
nfsv2.h stand: Remove ancient SCCS tags. 2023-11-26 22:23:29 -07:00
nullfs.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
nvstore.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
nvstore.h
open.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
pager.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
panic.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
pkgfs.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
preload.c stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
printf.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
random.c stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
rarp.c stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
read.c stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
readdir.c stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
rpc.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
rpc.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
rpcv2.h stand: Remove ancient SCCS tags. 2023-11-26 22:23:29 -07:00
saioctl.h stand: Remove ancient SCCS tags. 2023-11-26 22:23:29 -07:00
sbrk.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
smbios.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
smbios.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
splitfs.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
stand.h libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
stat.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
strcasecmp.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
strdup.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
strerror.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
tftp.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
tftp.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
time.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
tslog.c stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
twiddle.c stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
udp.c stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
ufs.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
ufsread.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
uuid_from_string.c Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
uuid_to_string.c Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
write.c stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
xlocale_private.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
zalloc_defs.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
zalloc_malloc.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
zalloc_mem.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
zalloc_protos.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
zalloc.c stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00