diff options
| author | 2020-01-25 10:58:21 +0000 | |
|---|---|---|
| committer | 2020-01-25 10:58:21 +0000 | |
| commit | 35e9513d347c66e4fd94208fc514fc91280f44c2 (patch) | |
| tree | f08438fce314ae6f833692a153dd52a3b7b604f7 /usr.sbin/bind/lib/isc/unix/file.c | |
| parent | move the SMR_LIST_REMOVE and smr_barrier up in tun_clone_destroy. (diff) | |
| download | wireguard-openbsd-35e9513d347c66e4fd94208fc514fc91280f44c2.tar.xz wireguard-openbsd-35e9513d347c66e4fd94208fc514fc91280f44c2.zip | |
isc_file_isdirwritable is not used (and besides, it uses access() which
hints all possible uses are TOCTOU)
Diffstat (limited to 'usr.sbin/bind/lib/isc/unix/file.c')
| -rw-r--r-- | usr.sbin/bind/lib/isc/unix/file.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/usr.sbin/bind/lib/isc/unix/file.c b/usr.sbin/bind/lib/isc/unix/file.c index b6ff1c7556e..f6be77670dc 100644 --- a/usr.sbin/bind/lib/isc/unix/file.c +++ b/usr.sbin/bind/lib/isc/unix/file.c @@ -43,7 +43,7 @@ * SUCH DAMAGE. */ -/* $Id: file.c,v 1.14 2020/01/22 13:02:10 florian Exp $ */ +/* $Id: file.c,v 1.15 2020/01/25 10:58:21 deraadt Exp $ */ /*! \file */ @@ -659,8 +659,3 @@ int isc_file_munmap(void *addr, size_t len) { return (munmap(addr, len)); } - -isc_boolean_t -isc_file_isdirwritable(const char *path) { - return (ISC_TF(access(path, W_OK|X_OK) == 0)); -} |
