comparison loginrec.c @ 801:7dcb46da72d9 ecc

merge in HEAD
author Matt Johnston <matt@ucc.asn.au>
date Tue, 21 May 2013 12:09:35 +0800
parents e0084f136cb8
children 1ed6f39e8aa4
comparison
equal deleted inserted replaced
799:c344607b7341 801:7dcb46da72d9
327 int 327 int
328 login_write (struct logininfo *li) 328 login_write (struct logininfo *li)
329 { 329 {
330 #ifndef HAVE_CYGWIN 330 #ifndef HAVE_CYGWIN
331 if ((int)geteuid() != 0) { 331 if ((int)geteuid() != 0) {
332 dropbear_log(LOG_WARNING,
333 "Attempt to write login records by non-root user (aborting)");
334 return 1; 332 return 1;
335 } 333 }
336 #endif 334 #endif
337 335
338 /* set the timestamp */ 336 /* set the timestamp */