summaryrefslogtreecommitdiffstats
path: root/src/kadmin/cli/getdate.y
Commit message (Collapse)AuthorAgeFilesLines
* Fix month/year units in getdateGreg Hudson2011-11-061-1/+2
| | | | | | | | | | | | | getdate strings like "1 month" or "next year" would fail some of the time, depending on the value of stack garbage, because DSTcorrect() doesn't set *error on success and RelativeMonth() doesn't initialize error. Make DSTcorrect() responsible for setting *error in all cases. ticket: 7003 target_version: 1.10 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25444 dc483132-0cff-0310-8789-dd5450dbe970
* Correct typo in r24526Greg Hudson2010-11-221-1/+1
| | | | | | ticket: 6823 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24527 dc483132-0cff-0310-8789-dd5450dbe970
* getdate.y: declare yyparseSam Hartman2010-11-221-0/+1
| | | | | | | | | | | | At least on lucid, byacc doesn't declare yyparse, which creates problems because lucid treats calls to unprototyped functions as errors. ticket: 6823 target_version: 1.9 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24526 dc483132-0cff-0310-8789-dd5450dbe970
* In getdate.y, remove an error check from r19656 which couldn't everGreg Hudson2010-05-211-2/+0
| | | | | | trigger (Convert() does not use an error parameter). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24082 dc483132-0cff-0310-8789-dd5450dbe970
* Use ANSI-style function definitions in our copy of getdate.yGreg Hudson2010-05-211-37/+11
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24081 dc483132-0cff-0310-8789-dd5450dbe970
* Fix the LDAP build, which was broken by the build reordering inGreg Hudson2009-08-071-1/+2
| | | | | | | | r22406. Build kdb5_util's getdate from the kadmin/cli getdate source, instead of borrowing the object file from the kadmin/cli build directory. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22501 dc483132-0cff-0310-8789-dd5450dbe970
* Make datetest buildable againTom Yu2009-07-091-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22432 dc483132-0cff-0310-8789-dd5450dbe970
* Check for error indication from localtime.Ken Raeburn2007-06-291-11/+51
| | | | | | | | | | In a few cases this means changing internal function signatures to allow for passing back the error indication up the call stack. Thanks to Domagoj Babic for pointing out the possible null pointer dereferences that would result if localtime fails. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19656 dc483132-0cff-0310-8789-dd5450dbe970
* * getdate.y: Include autoconf.h always. Don't include config.hKen Raeburn2006-04-041-7/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17843 dc483132-0cff-0310-8789-dd5450dbe970
* * getdate.y: Include krb5.h and kadmin.h.Ken Raeburn2004-05-301-2/+6
| | | | | | | | | | | | (get_date): Drop second argument; always use NULL. * kadmin.h: Include time.h and/or sys/time.h. (get_date): Declare. * kadmin.c (get_date): Don't declare. (kadmin_parse_princ_args, kadmin_parse_policy_args): Drop second argument to get_date. * Makefile.in (LOCALINCLUDES): Define. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16376 dc483132-0cff-0310-8789-dd5450dbe970
* * getdate.y (bcopy): Don't bother with HAVE_BCOPY and HAVE_MEMCPY tests; alwaysKen Raeburn2003-08-261-1/+1
| | | | | | define the macro if it's not already defined. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15795 dc483132-0cff-0310-8789-dd5450dbe970
* * getdate.y: Provide full prototype for getdate_yylex() andEzra Peisach2001-06-261-7/+2
| | | | | | getdate_yyerror(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13508 dc483132-0cff-0310-8789-dd5450dbe970
* * getdate.y: Cast argument to isalpha()/isspace()/isdigit() to intEzra Peisach2001-06-181-8/+9
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13373 dc483132-0cff-0310-8789-dd5450dbe970
* * ss_wrapper.c: Include kadmin.hEzra Peisach2001-02-261-2/+2
| | | | | | | | | | | | | | * kadmin.c, keytab.c: Warning cleanup of shadowing variables, missing prototypes, assignments within conditionals. variables type mismatches. * getdate.y: Prototypes in file are for getdate_yylex() and getdaye_yyerror() and not yylex()/yyerror(). * kadmin.h: New header file with ss callback prototypes and global variables. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13026 dc483132-0cff-0310-8789-dd5450dbe970
* * kadmin.c (kadmin_getpol): Change format strings from %d to %ldEzra Peisach2000-10-031-1/+5
| | | | | | | | to match the policy types which are longs. * getdate.y: Include stdlib.h if present on system. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12704 dc483132-0cff-0310-8789-dd5450dbe970
* y2k fix from 1.1 branchKen Raeburn1999-09-011-6/+15
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11759 dc483132-0cff-0310-8789-dd5450dbe970
* * getdate.y: remove military timezones and plain integeres as partBarry Jaspan1996-10-181-70/+0
| | | | | | | of date specifications, to reduce confusion by redundancy [krb5-admin/15] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9201 dc483132-0cff-0310-8789-dd5450dbe970
* * getdate.y: add lots of commentsBarry Jaspan1996-09-251-1/+75
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9114 dc483132-0cff-0310-8789-dd5450dbe970
* getdate.y: Declare a private copy of struct timeb to be used internallyEzra Peisach1996-09-061-11/+7
| | | | | | | | in this file. The problem is that Sun's C compiler doesn't deal gracefully with the pragmas for the declared structure which causes coredumps. Gcc of course works. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9037 dc483132-0cff-0310-8789-dd5450dbe970
* * kadmin.c: add newlines to "invalid date spec" msgBarry Jaspan1996-08-231-3/+13
| | | | | | * getdate.y: add "never" as a valid date specification git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8970 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in: add target for datetestBarry Jaspan1996-08-191-6/+7
| | | | | | * getdate.y: accept dates after 1999 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8953 dc483132-0cff-0310-8789-dd5450dbe970
* this commit includes all the changes on the OV_9510_INTEGRATION andMarc Horowitz1996-07-221-0/+1009
OV_MERGE branches. This includes, but is not limited to, the new openvision admin system, and major changes to gssapi to add functionality, and bring the implementation in line with rfc1964. before committing, the code was built and tested for netbsd and solaris. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8774 dc483132-0cff-0310-8789-dd5450dbe970