diff options
author | наб <[email protected]> | 2021-04-03 01:34:58 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2021-04-02 16:34:58 -0700 |
commit | 943df59ed942182427ed50b94a346dc22c4407e6 (patch) | |
tree | 2537f0d6c55631bac78732cefa9f38b9c3adf51d /module/os | |
parent | c0af3c7b2c7bf1c601b4130533a9efebe42c581c (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 'module/os')
0 files changed, 0 insertions, 0 deletions