diff options
author | ngie <ngie@FreeBSD.org> | 2014-10-25 05:31:18 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2014-10-25 05:31:18 +0000 |
commit | 2d14a58e29b413967257c75945fe34f30e84507a (patch) | |
tree | c02f8462b5fb3d8478987866150be2f91b27804b /tools/regression | |
parent | d60f1a33ea231eca1ce6cc49dc2cee6abc660d96 (diff) | |
download | FreeBSD-src-2d14a58e29b413967257c75945fe34f30e84507a.zip FreeBSD-src-2d14a58e29b413967257c75945fe34f30e84507a.tar.gz |
Move the redirection to stderr out of the cmd variable assignment
Putting 2>/dev/null in cmd= escapes the redirection operation, which causes
mdconfig to think it's a filename
MFC after: 2 weeks
X-MFC with: r273627
Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'tools/regression')
-rwxr-xr-x | tools/regression/zfs/misc.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/regression/zfs/misc.sh b/tools/regression/zfs/misc.sh index 9f6b403..b52481e 100755 --- a/tools/regression/zfs/misc.sh +++ b/tools/regression/zfs/misc.sh @@ -167,8 +167,8 @@ create_memdisk() if [ -n "${devname}" ]; then devparam="-u ${devname}" fi - cmd="mdconfig -a -t swap -s ${size} ${devparam} 2>/dev/null" - DISKNAME=`${cmd}` || die "failed: ${cmd}" + cmd="mdconfig -a -t swap -s ${size} ${devparam}" + DISKNAME=`$cmd 2>/dev/null` || die "failed: ${cmd}" if [ -n "${devname}" ]; then DISKNAME="${devname}" fi |