diff options
author | Damien Miller <djm@mindrot.org> | 2000-09-05 07:13:06 +0200 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2000-09-05 07:13:06 +0200 |
commit | bac2d8aa5e642a70045e713853b13d020b9c5d57 (patch) | |
tree | 98ddc81efce2273b3dfaff03b51242c988d30abf /loginrec.c | |
parent | Fix spec files (diff) | |
download | openssh-bac2d8aa5e642a70045e713853b13d020b9c5d57.tar.xz openssh-bac2d8aa5e642a70045e713853b13d020b9c5d57.zip |
- (djm) Merge cygwin support from Corinna Vinschen <vinschen@cygnus.com>
Diffstat (limited to 'loginrec.c')
-rw-r--r-- | loginrec.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/loginrec.c b/loginrec.c index 61bceb180..0e1f344b9 100644 --- a/loginrec.c +++ b/loginrec.c @@ -161,7 +161,7 @@ #include "xmalloc.h" #include "loginrec.h" -RCSID("$Id: loginrec.c,v 1.22 2000/08/29 03:30:37 djm Exp $"); +RCSID("$Id: loginrec.c,v 1.23 2000/09/05 05:13:07 djm Exp $"); /** ** prototypes for helper functions in this file @@ -401,10 +401,12 @@ login_set_addr(struct logininfo *li, const struct sockaddr *sa, int login_write (struct logininfo *li) { +#ifndef HAVE_CYGWIN if ((int)geteuid() != 0) { log("Attempt to write login records by non-root user (aborting)"); return 1; } +#endif /* set the timestamp */ login_set_current_time(li); |