Commit Graph

33 Commits

Author SHA1 Message Date
christos 6e28978d84 fix unused variable warnings 2013-10-18 20:47:06 +00:00
matt d34c2845b8 Use C89 function definitions 2012-03-20 20:34:57 +00:00
christos 99db46311e fix time_t printf format. 2008-12-29 01:26:46 +00:00
lukem 98e5374ccb Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.
2008-07-21 14:19:20 +00:00
christos da88a5a499 Coverity CID 5011: #ifdef out unreachable code. 2008-05-24 19:26:14 +00:00
lukem 73d8c4238e Add support for PAM when using -p, via USE_PAM!=no.
Fix non-root S/key support with USE_SKEY!=no (which is exclusive to
USE_PAM!=no); discovered whilst testing the "old" behaviour.
2008-03-30 15:30:15 +00:00
perry 8b0f9554ff convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
hubertf 4442954cb6 * Remove unused header ctype.h
* Remove __P

Contributed by Slava Semushin <slava.semushin@gmail.com> in private mail.
2007-02-07 14:11:30 +00:00
liamjfoy 1ee9d337ea clear errno before using strtol
ok christos & joerg
2006-05-11 12:02:08 +00:00
wiz 8ff81120a3 Usage -> usage; add missing -n to usage. From Kouichirou Hiratsuka in PR 26221. 2004-07-13 11:55:02 +00:00
christos 3506cd1fa5 - KNF
- detect and print more errors
- use strtol() instead of atoi()
- use getprogname()
2004-03-17 17:54:25 +00:00
christos eee22dae1e PR/24796: Colin Percival: CPU-eating loop in lock(1); apply FreeBSD fix. 2004-03-17 17:01:31 +00:00
agc 89aaa1bb64 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-08-07 11:13:06 +00:00
itojun 5f2d0b666f error handling on strdup failure 2002-11-16 15:59:26 +00:00
martin ce931ccccf Just another skey compile fix. 2000-07-29 08:40:38 +00:00
simonb d88dfea295 Don't declare 'extern opt*' getopt variables. 2000-04-14 06:11:07 +00:00
tron 9a312a997e Add new option "-n" to disable lock timeout. Patch supplied by "The Man"
in PR bin/7816.
1999-06-27 10:00:36 +00:00
christos e2d09d7f42 portability in printf format, and support for svr4 timezone. 1998-12-19 19:30:57 +00:00
mycroft 55ac0c2da3 const poisoning. 1998-07-26 21:58:46 +00:00
mycroft 66427701ea const poisoning. 1998-07-26 15:23:39 +00:00
mrg 2beab49a06 - use an array MAXHOSTNAMELEN+1 size to hold hostnames
- ensure hostname from gethostname() is nul-terminated in all cases
- minor KNF
- use MAXHOSTNAMELEN over various other values/defines
- be safe will buffers that hold hostnames
1998-07-06 06:45:41 +00:00
mrg b4d921abdc KNF, and discard privs as soon as possible. ensure hostname is nul-terminated 1998-07-05 08:22:36 +00:00
kleink bed4261e5c Need <time.h> for localtime() and asctime() prototypes. 1998-04-02 10:25:09 +00:00
lukem 0c79788813 WARNSify, fix .Nm usage, getopt returns -1 not EOF 1997-10-19 04:15:39 +00:00
pk f890b048ac NULL => 0 (Arne Juul; PR#3629) 1997-05-17 19:47:50 +00:00
jtc 273e6cc624 Include appropriate header files to bring prototypes into scope.
Removed explicit errno declarations.
1996-05-07 18:32:22 +00:00
jtc 4a241ea576 sys/signal.h -> signal.h 1995-06-27 00:16:17 +00:00
cgd ed7cdf533b can't assume that timeval.ts_sec is same type as time_t. grr. 1995-06-07 16:09:53 +00:00
mycroft bd23a1002f Use POSIX tty semantics and err*(3)/warn*(3). 1995-05-02 01:22:58 +00:00
jtc 31ac284a48 Merged with 4.4lite.
Changed to conform to NetBSD's new RCS Id convention.
1994-12-22 01:06:58 +00:00
deraadt 58732c3c77 skey support from <tsarna@endicor.com> 1994-06-30 03:49:43 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00