aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libzfsbootenv/lzbe_device.c
diff options
context:
space:
mode:
authorнаб <[email protected]>2021-04-03 01:34:58 +0200
committerBrian Behlendorf <[email protected]>2021-04-07 13:27:06 -0700
commit35cce6ea6375c8f2e36d4569776f837fcac64289 (patch)
tree92b27005d8e4aeb993ff661c2dc3265553bfd6cf /lib/libzfsbootenv/lzbe_device.c
parentd539b7793469a02c7bb5229e0b5cf31dcfba1717 (diff)
bash_completion.d: always call zfs/zpool binaries directly
/dev/zfs is 0:0 666 on most systems, so the [ -w /dev/zfs ] check always succeeds, but if zfs isn't in $PATH (e.g. when completing from "/sbin/zfs list" on a regular account) this can lead to error spew like nabijaczleweli@szarotka:~$ /sbin/zfs list bash: zfs: command not found @ bash: zfs: command not found We only do read-only commands, and quite general ones at that, so there's no need to elevate one way or another. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes #11828
Diffstat (limited to 'lib/libzfsbootenv/lzbe_device.c')
0 files changed, 0 insertions, 0 deletions