[PATCH]: 2.1.1p2: wrong #if/#endif in loginrec.c
Corinna Vinschen
vinschen at cygnus.com
Sun Jul 2 01:46:59 EST 2000
Hi,
I have found an error in loginrec.c in the portable 2.1.1p2 release.
The #if/#endif combination in syslogin_perform_logout() is wrong and
results in unbalanced braces if HAVE_LOGWTMP is undefined.
Corinna
Index: loginrec.c
===================================================================
RCS file: /src/cvsroot/openssh-211p2/loginrec.c,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 loginrec.c
--- loginrec.c 2000/07/01 13:06:52 1.1.1.1
+++ loginrec.c 2000/07/01 15:40:22
@@ -1271,8 +1271,8 @@ syslogin_perform_logout(struct logininfo
# ifdef HAVE_LOGWTMP
} else {
logwtmp(line, "", "");
- }
# endif
+ }
/* FIXME: (ATL - if the need arises) What to do if we have
* login, but no logout? what if logout but no logwtmp? All
* routines are in libutil so they should all be there,
--
Corinna Vinschen
Cygwin Developer
Cygnus Solutions, a Red Hat company
More information about the openssh-unix-dev
mailing list