diff options
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | configure.ac | 6 | ||||
-rw-r--r-- | openbsd-compat/bsd-misc.c | 13 | ||||
-rw-r--r-- | openbsd-compat/bsd-misc.h | 6 |
4 files changed, 24 insertions, 3 deletions
@@ -1,6 +1,8 @@ | |||
1 | 20130215 | 1 | 20130215 |
2 | - (djm) [contrib/suse/rc.sshd] Use SSHD_BIN consistently; bz#2056 from | 2 | - (djm) [contrib/suse/rc.sshd] Use SSHD_BIN consistently; bz#2056 from |
3 | Iain Morgan | 3 | Iain Morgan |
4 | - (dtucker) [configure.ac openbsd-compat/bsd-misc.c openbsd-compat/bsd-misc.h] | ||
5 | Use getpgrp() if we don't have getpgid() (old BSDs, maybe others). | ||
4 | - (djm) OpenBSD CVS Sync | 6 | - (djm) OpenBSD CVS Sync |
5 | - djm@cvs.openbsd.org 2013/02/14 21:35:59 | 7 | - djm@cvs.openbsd.org 2013/02/14 21:35:59 |
6 | [auth2-pubkey.c] | 8 | [auth2-pubkey.c] |
diff --git a/configure.ac b/configure.ac index e96e81e64..def34fa0b 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1,4 +1,4 @@ | |||
1 | # $Id: configure.ac,v 1.503 2013/02/10 23:39:13 djm Exp $ | 1 | # $Id: configure.ac,v 1.504 2013/02/15 00:41:35 dtucker Exp $ |
2 | # | 2 | # |
3 | # Copyright (c) 1999-2004 Damien Miller | 3 | # Copyright (c) 1999-2004 Damien Miller |
4 | # | 4 | # |
@@ -15,7 +15,7 @@ | |||
15 | # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | 15 | # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
16 | 16 | ||
17 | AC_INIT([OpenSSH], [Portable], [openssh-unix-dev@mindrot.org]) | 17 | AC_INIT([OpenSSH], [Portable], [openssh-unix-dev@mindrot.org]) |
18 | AC_REVISION($Revision: 1.503 $) | 18 | AC_REVISION($Revision: 1.504 $) |
19 | AC_CONFIG_SRCDIR([ssh.c]) | 19 | AC_CONFIG_SRCDIR([ssh.c]) |
20 | AC_LANG([C]) | 20 | AC_LANG([C]) |
21 | 21 | ||
@@ -1550,6 +1550,8 @@ AC_CHECK_FUNCS([ \ | |||
1550 | getopt \ | 1550 | getopt \ |
1551 | getpeereid \ | 1551 | getpeereid \ |
1552 | getpeerucred \ | 1552 | getpeerucred \ |
1553 | getpgid \ | ||
1554 | getpgrp \ | ||
1553 | _getpty \ | 1555 | _getpty \ |
1554 | getrlimit \ | 1556 | getrlimit \ |
1555 | getttyent \ | 1557 | getttyent \ |
diff --git a/openbsd-compat/bsd-misc.c b/openbsd-compat/bsd-misc.c index 3ef373f56..0cff2e423 100644 --- a/openbsd-compat/bsd-misc.c +++ b/openbsd-compat/bsd-misc.c | |||
@@ -247,3 +247,16 @@ int isblank(int c) | |||
247 | return (c == ' ' || c == '\t'); | 247 | return (c == ' ' || c == '\t'); |
248 | } | 248 | } |
249 | #endif | 249 | #endif |
250 | |||
251 | #ifndef HAVE_GETPGID | ||
252 | pid_t | ||
253 | getpgid(pid_t pid) | ||
254 | { | ||
255 | #ifdef HAVE_GETPGRP | ||
256 | if (pid == 0) | ||
257 | return getpgrp(); | ||
258 | #endif | ||
259 | errno = ESRCH; | ||
260 | return -1; | ||
261 | } | ||
262 | #endif | ||
diff --git a/openbsd-compat/bsd-misc.h b/openbsd-compat/bsd-misc.h index eac5217ca..de8367386 100644 --- a/openbsd-compat/bsd-misc.h +++ b/openbsd-compat/bsd-misc.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $Id: bsd-misc.h,v 1.21 2012/07/03 22:50:10 dtucker Exp $ */ | 1 | /* $Id: bsd-misc.h,v 1.22 2013/02/15 00:41:36 dtucker Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 1999-2004 Damien Miller <djm@mindrot.org> | 4 | * Copyright (c) 1999-2004 Damien Miller <djm@mindrot.org> |
@@ -102,4 +102,8 @@ mysig_t mysignal(int sig, mysig_t act); | |||
102 | int isblank(int); | 102 | int isblank(int); |
103 | #endif | 103 | #endif |
104 | 104 | ||
105 | #ifndef HAVE_GETPGID | ||
106 | pid_t getpgid(pid_t); | ||
107 | #endif | ||
108 | |||
105 | #endif /* _BSD_MISC_H */ | 109 | #endif /* _BSD_MISC_H */ |