summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/readdir_r.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2013-11-06 22:26:14 +0000
committerschwarze <schwarze@openbsd.org>2013-11-06 22:26:14 +0000
commit1c8956b91967617e2aef9b425fd0b82685e8b611 (patch)
tree7634121ec3aceca0e682840b2e88c7d87bab544f /lib/libc/gen/readdir_r.c
parentBack port remainder of use_loginclass fix from sudo 1.7.9. (diff)
downloadwireguard-openbsd-1c8956b91967617e2aef9b425fd0b82685e8b611.tar.xz
wireguard-openbsd-1c8956b91967617e2aef9b425fd0b82685e8b611.zip
Nowadays, seekdir(3) doesn't call _readdir_unlocked().
Consequently, the "skipdeleted" argument is always == 1. Remove it, effectively reverting readdir.c rev. 1.14. ok millert@ guenther@
Diffstat (limited to 'lib/libc/gen/readdir_r.c')
-rw-r--r--lib/libc/gen/readdir_r.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/gen/readdir_r.c b/lib/libc/gen/readdir_r.c
index a7fa14c65e2..cd70bd6f1bc 100644
--- a/lib/libc/gen/readdir_r.c
+++ b/lib/libc/gen/readdir_r.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: readdir_r.c,v 1.4 2013/09/30 12:02:34 millert Exp $ */
+/* $OpenBSD: readdir_r.c,v 1.5 2013/11/06 22:26:14 schwarze Exp $ */
/*
* Copyright (c) 1983, 1993
* The Regents of the University of California. All rights reserved.
@@ -35,7 +35,7 @@
#include "telldir.h"
#include "thread_private.h"
-int _readdir_unlocked(DIR *, struct dirent **, int);
+int _readdir_unlocked(DIR *, struct dirent **);
int
readdir_r(DIR *dirp, struct dirent *entry, struct dirent **result)
@@ -43,7 +43,7 @@ readdir_r(DIR *dirp, struct dirent *entry, struct dirent **result)
struct dirent *dp;
_MUTEX_LOCK(&dirp->dd_lock);
- if (_readdir_unlocked(dirp, &dp, 1) != 0) {
+ if (_readdir_unlocked(dirp, &dp) != 0) {
_MUTEX_UNLOCK(&dirp->dd_lock);
return errno;
}