adduser: Really fix a syntax error

Fixes:		5cafc38f11
Differential Revision:	https://reviews.freebsd.org/D44871
This commit is contained in:
Dag-Erling Smørgrav 2024-04-29 12:29:35 +02:00
parent c28253ecde
commit 9e8618276f

View file

@ -477,7 +477,8 @@ get_zfs_home() {
# check if zfs kernel module is loaded before attempting to run zfs to
# prevent loading the kernel module on systems that don't use ZFS
if ! "$KLDSTATCMD" -q -m zfs || Zcreate="no"; then
if ! "$KLDSTATCMD" -q -m zfs; then
Zcreate="no"
return
fi
if ! _prefix=$(${ZFSCMD} list -Ho name "${homeprefix}" 2>/dev/null) ||