- (dtucker) [openbsd-compat/bsd-misc.c] Fix cut-and-paste bug in tcgetpgrp.

This commit is contained in:
Darren Tucker 2003-08-03 00:36:16 +10:00
parent 19c4bbc37f
commit bdf571b0dc
2 changed files with 4 additions and 3 deletions

View File

@ -46,6 +46,7 @@
- (dtucker) [openbsd-compat/bsd-misc.c openbsd-compat/bsd-misc.h] - (dtucker) [openbsd-compat/bsd-misc.c openbsd-compat/bsd-misc.h]
Add a tcgetpgrp function. Add a tcgetpgrp function.
- (dtucker) [Makefile.in moduli.c moduli.h] Add new files and to Makefile. - (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 20030730
- (djm) [auth-pam.c] Don't use crappy APIs like sprintf. Thanks bal - (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. - Fix sshd BindAddress and -b options for systems using fake-getaddrinfo.
Report from murple@murple.net, diagnosis from dtucker@zip.com.au 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 $

View File

@ -25,7 +25,7 @@
#include "includes.h" #include "includes.h"
#include "xmalloc.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] * NB. duplicate __progname in case it is an alias for argv[0]
@ -173,7 +173,7 @@ tcgetpgrp(int fd)
{ {
int ctty_pgrp; int ctty_pgrp;
if (ioctl(STDOUT_FILENO, TIOCGPGRP, &ctty_pgrp) == -1) if (ioctl(fd, TIOCGPGRP, &ctty_pgrp) == -1)
return(-1); return(-1);
else else
return(ctty_pgrp); return(ctty_pgrp);