mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 09:10:28 +00:00
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:
parent
911a6479e1
commit
5cafc38f11
|
@ -477,8 +477,7 @@ get_zfs_home() {
|
||||||
|
|
||||||
# check if zfs kernel module is loaded before attempting to run zfs to
|
# 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
|
# prevent loading the kernel module on systems that don't use ZFS
|
||||||
if ! "$KLDSTATCMD" -q -m zfs ||
|
if ! "$KLDSTATCMD" -q -m zfs || Zcreate="no"; then
|
||||||
Zcreate="no"
|
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
if ! _prefix=$(${ZFSCMD} list -Ho name "${homeprefix}" 2>/dev/null) ||
|
if ! _prefix=$(${ZFSCMD} list -Ho name "${homeprefix}" 2>/dev/null) ||
|
||||||
|
|
Loading…
Reference in a new issue