summaryrefslogtreecommitdiff
path: root/openbsd-compat/bsd-misc.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2003-08-03 00:36:16 +1000
committerDarren Tucker <dtucker@zip.com.au>2003-08-03 00:36:16 +1000
commitbdf571b0dc29efdec02c8a56f102077bf49aeb7c (patch)
tree6324c26ade945019a72151adaa20408de0c3a459 /openbsd-compat/bsd-misc.c
parent19c4bbc37f892288a3f71b48ca09e7840cb84112 (diff)
downloadopenssh-git-bdf571b0dc29efdec02c8a56f102077bf49aeb7c.tar.gz
- (dtucker) [openbsd-compat/bsd-misc.c] Fix cut-and-paste bug in tcgetpgrp.
Diffstat (limited to 'openbsd-compat/bsd-misc.c')
-rw-r--r--openbsd-compat/bsd-misc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsd-compat/bsd-misc.c b/openbsd-compat/bsd-misc.c
index 474aae1a..da8f7704 100644
--- a/openbsd-compat/bsd-misc.c
+++ b/openbsd-compat/bsd-misc.c
@@ -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);