mirror of
git://anongit.mindrot.org/openssh.git
synced 2024-12-28 21:22:07 +00:00
- (dtucker) [openbsd-compat/bsd-misc.c] Fix cut-and-paste bug in tcgetpgrp.
This commit is contained in:
parent
19c4bbc37f
commit
bdf571b0dc
@ -46,6 +46,7 @@
|
||||
- (dtucker) [openbsd-compat/bsd-misc.c openbsd-compat/bsd-misc.h]
|
||||
Add a tcgetpgrp function.
|
||||
- (dtucker) [Makefile.in moduli.c moduli.h] Add new files and to Makefile.
|
||||
- (dtucker) [openbsd-compat/bsd-misc.c] Fix cut-and-paste bug in tcgetpgrp.
|
||||
|
||||
20030730
|
||||
- (djm) [auth-pam.c] Don't use crappy APIs like sprintf. Thanks bal
|
||||
@ -784,4 +785,4 @@
|
||||
- Fix sshd BindAddress and -b options for systems using fake-getaddrinfo.
|
||||
Report from murple@murple.net, diagnosis from dtucker@zip.com.au
|
||||
|
||||
$Id: ChangeLog,v 1.2878 2003/08/02 14:07:35 dtucker Exp $
|
||||
$Id: ChangeLog,v 1.2879 2003/08/02 14:36:16 dtucker Exp $
|
||||
|
@ -25,7 +25,7 @@
|
||||
#include "includes.h"
|
||||
#include "xmalloc.h"
|
||||
|
||||
RCSID("$Id: bsd-misc.c,v 1.15 2003/08/02 13:33:48 dtucker Exp $");
|
||||
RCSID("$Id: bsd-misc.c,v 1.16 2003/08/02 14:36:16 dtucker Exp $");
|
||||
|
||||
/*
|
||||
* NB. duplicate __progname in case it is an alias for argv[0]
|
||||
@ -173,7 +173,7 @@ tcgetpgrp(int fd)
|
||||
{
|
||||
int ctty_pgrp;
|
||||
|
||||
if (ioctl(STDOUT_FILENO, TIOCGPGRP, &ctty_pgrp) == -1)
|
||||
if (ioctl(fd, TIOCGPGRP, &ctty_pgrp) == -1)
|
||||
return(-1);
|
||||
else
|
||||
return(ctty_pgrp);
|
||||
|
Loading…
Reference in New Issue
Block a user