summaryrefslogtreecommitdiff
path: root/loginrec.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-09-05 16:13:06 +1100
committerDamien Miller <djm@mindrot.org>2000-09-05 16:13:06 +1100
commitbac2d8aa5e642a70045e713853b13d020b9c5d57 (patch)
tree98ddc81efce2273b3dfaff03b51242c988d30abf /loginrec.c
parent676092fad0b6edca8f1fe731d7c3a000465a9bef (diff)
- (djm) Merge cygwin support from Corinna Vinschen <vinschen@cygnus.com>
Diffstat (limited to 'loginrec.c')
-rw-r--r--loginrec.c4
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 @@
161#include "xmalloc.h" 161#include "xmalloc.h"
162#include "loginrec.h" 162#include "loginrec.h"
163 163
164RCSID("$Id: loginrec.c,v 1.22 2000/08/29 03:30:37 djm Exp $"); 164RCSID("$Id: loginrec.c,v 1.23 2000/09/05 05:13:07 djm Exp $");
165 165
166/** 166/**
167 ** prototypes for helper functions in this file 167 ** prototypes for helper functions in this file
@@ -401,10 +401,12 @@ login_set_addr(struct logininfo *li, const struct sockaddr *sa,
401int 401int
402login_write (struct logininfo *li) 402login_write (struct logininfo *li)
403{ 403{
404#ifndef HAVE_CYGWIN
404 if ((int)geteuid() != 0) { 405 if ((int)geteuid() != 0) {
405 log("Attempt to write login records by non-root user (aborting)"); 406 log("Attempt to write login records by non-root user (aborting)");
406 return 1; 407 return 1;
407 } 408 }
409#endif
408 410
409 /* set the timestamp */ 411 /* set the timestamp */
410 login_set_current_time(li); 412 login_set_current_time(li);