[openssh-commits] [openssh] 01/01: Revert "stub for pledge(2) for systems that lack it"
git+noreply at mindrot.org
git+noreply at mindrot.org
Mon Nov 30 11:00:37 AEDT 2015
This is an automated email from the git hooks/post-receive script.
djm pushed a commit to branch master
in repository openssh.
commit f0191d7c8e76e30551084b79341886d9bb38e453
Author: Damien Miller <djm at mindrot.org>
Date: Mon Nov 30 10:53:25 2015 +1100
Revert "stub for pledge(2) for systems that lack it"
This reverts commit 14c887c8393adde2d9fd437d498be30f8c98535c.
dtucker beat me to it :/
---
openbsd-compat/bsd-pledge.c | 14 --------------
openbsd-compat/openbsd-compat.h | 4 ----
2 files changed, 18 deletions(-)
diff --git a/openbsd-compat/bsd-pledge.c b/openbsd-compat/bsd-pledge.c
deleted file mode 100644
index afce3c0..0000000
--- a/openbsd-compat/bsd-pledge.c
+++ /dev/null
@@ -1,14 +0,0 @@
-/* Placed in the public domain. */
-
-#include "includes.h"
-
-#ifndef HAVE_PLEDGE
-
-/* Stub; real implementations wanted. */
-int
-pledge(const char *promises, const char *paths[])
-{
- return 0;
-}
-
-#endif /* HAVE_PLEDGE */
diff --git a/openbsd-compat/openbsd-compat.h b/openbsd-compat/openbsd-compat.h
index be7b687..8cc8a11 100644
--- a/openbsd-compat/openbsd-compat.h
+++ b/openbsd-compat/openbsd-compat.h
@@ -264,10 +264,6 @@ int bcrypt_pbkdf(const char *, size_t, const u_int8_t *, size_t,
void explicit_bzero(void *p, size_t n);
#endif
-#ifndef HAVE_PLEDGE
-int pledge(const char *promises, const char *paths[]);
-#endif /* HAVE_PLEDGE */
-
void *xmmap(size_t size);
char *xcrypt(const char *password, const char *salt);
char *shadow_pw(struct passwd *pw);
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list