diff options
author | Klemens Nanni <kn@cvs.openbsd.org> | 2022-11-07 15:55:57 +0000 |
---|---|---|
committer | Klemens Nanni <kn@cvs.openbsd.org> | 2022-11-07 15:55:57 +0000 |
commit | b3cb1e245965459c8b322d49a2f23df56077edcb (patch) | |
tree | 08feb9d755c4ac0c45f3246c2d8336cde19ef466 /usr.sbin/yppoll | |
parent | 5dcbc9c943a3d20766db4293f7ed13e6e7e960e3 (diff) |
Use variable and shorter logic for NFS check
No need to hardcode a parent path if we can reuse an existing variable for
the specific path that is in being used.
Negate the file system type in df(1) so the `|| exit 1' can be dropped
in favour of the errexit option, as is done for everything else in there.
Clarify the comment how this is intentionally NOT logged, i.e. the test
happens before the error trap/syslog/logfile handling.
OK millert
Diffstat (limited to 'usr.sbin/yppoll')
0 files changed, 0 insertions, 0 deletions