adduser: Fix a syntax error

Reported by:	Jose Luis Duran <jlduran@gmail.com>
Fixes:		b37333899b
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D44871
This commit is contained in:
Joseph Mingrone 2024-04-22 16:04:13 -03:00
parent 911a6479e1
commit 5cafc38f11
No known key found for this signature in database
GPG key ID: 36A40C83B0D6EF9E

View file

@ -477,8 +477,7 @@ 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"
if ! "$KLDSTATCMD" -q -m zfs || Zcreate="no"; then
return
fi
if ! _prefix=$(${ZFSCMD} list -Ho name "${homeprefix}" 2>/dev/null) ||