summaryrefslogtreecommitdiffstats
path: root/src/clients/ksu/ccache.c
Commit message (Collapse)AuthorAgeFilesLines
* Mark up strings for translationGreg Hudson2011-06-101-12/+10
| | | | | | ticket: 6918 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24961 dc483132-0cff-0310-8789-dd5450dbe970
* Eliminate some uses of variables as format strings. Based on a patchGreg Hudson2010-05-031-1/+1
| | | | | | | | from Guillaume Rousse <Guillaume.Rousse@inria.fr>. ticket: 6714 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23963 dc483132-0cff-0310-8789-dd5450dbe970
* Assume lstat in Unix code, specifically clients/ksu/ccache.c. Fix badGreg Hudson2010-04-081-100/+92
| | | | | | indentation caused by an #ifdef HAVE_LSTAT block. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23870 dc483132-0cff-0310-8789-dd5450dbe970
* make mark-cstyleTom Yu2009-10-311-428/+429
| | | | | | make reindent git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23100 dc483132-0cff-0310-8789-dd5450dbe970
* Remove unnecessary pointer casts in args to free,memcpy,memset,memchr except ↵Ken Raeburn2009-02-021-3/+3
| | | | | | unicode, windows code git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21875 dc483132-0cff-0310-8789-dd5450dbe970
* Use snprintf instead of strcpy/strcat in many placesGreg Hudson2008-10-231-4/+3
| | | | | | | ticket: 6200 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20912 dc483132-0cff-0310-8789-dd5450dbe970
* After malloc/realloc/calloc failures, return ENOMEM explicitly insteadKen Raeburn2008-04-301-6/+6
| | | | | | | of reading it from errno. This may make static analysis tools less confused about when we return zero vs nonzero values. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20312 dc483132-0cff-0310-8789-dd5450dbe970
* * ccache.c (printtime): Do not assume that krb5_timestamp andEzra Peisach2002-06-211-3/+5
| | | | | | | | | | time_t are the same size as an argument to localtime. * heuristic.c (get_authorized_princ_names): If .k5login file exists but is not owned by the user, do not attempt to fclose an uninitialized FILE *. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14556 dc483132-0cff-0310-8789-dd5450dbe970
* * setenv.c: Add prototype for _findenv to avoid inconsistancy ofEzra Peisach2001-06-111-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | static vs. extern. * heuristic.c (find_either_ticket): Change krb5_tgtname() to ksu_tgtname(). * ccache.c: Include <sys/types.h> and <sys/stat.h> for start() prototype. * krb_auth_su.c: Reindent for readability. Remove defunct code. Change use of krb5_tgtname to ksu_tgtname(). * ksu.h: Include k5-util.h for krb5_seteuid() prototype. Add prototype for ksu_tgtname. Add prototype for unsetenv() if not defined. * main.c: Include grp.h for initgroups() prototype. Cleanup assignment in conditional warning. Reindent for readability. Arguments to print_status made consistant with regard to long vs. int. Change krb5_tgtname to ksu_tgtname. (do not use an internal krb5 function that is not advertised). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13328 dc483132-0cff-0310-8789-dd5450dbe970
* * ccache.c, heuristic.c, main.c: Return of krb5_cc_get_name() isEzra Peisach2000-10-031-10/+10
| | | | | | const char *. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12711 dc483132-0cff-0310-8789-dd5450dbe970
* pullup from 1.2-beta4Ken Raeburn2000-07-011-4/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12498 dc483132-0cff-0310-8789-dd5450dbe970
* merge from 1.1 branchKen Raeburn1999-12-061-3/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11952 dc483132-0cff-0310-8789-dd5450dbe970
* Significant security fixes to ksuSam Hartman1996-05-191-3/+31
| | | | | | | | | | | | | | | | * Use source euid all throughout procedure of opening source ccache, Richard's code had a race condition. * Use target euid while looking up .k5login and constructing target ccache. * Avoid chowns completely; they create race conditions. Fchown could have been used if we wanted to be really careful, but they aren't necessary and we would have to violate abstractions. * Clean up several conditions that would allow users to delete arbitrary files of the user they were ksuing to without authorization. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8049 dc483132-0cff-0310-8789-dd5450dbe970
* proven's ksu fixesMark Eichin1996-04-101-53/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7784 dc483132-0cff-0310-8789-dd5450dbe970
* Change use of krb5_clockskew to be context->clockskewTheodore Tso1995-11-081-4/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7064 dc483132-0cff-0310-8789-dd5450dbe970
* Use libkadm string handling routinesPaul Park1995-08-211-43/+40
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6563 dc483132-0cff-0310-8789-dd5450dbe970
* Add full prototypes for all functions. Fix calls to functions thatEzra Peisach1995-07-201-1/+0
| | | | | | were missing an argument (usually context) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6317 dc483132-0cff-0310-8789-dd5450dbe970
* More missing contextsEzra Peisach1995-05-091-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5788 dc483132-0cff-0310-8789-dd5450dbe970
* Removed all references to DECLARG and OLDDECLARG.Chris Provenzano1995-01-131-78/+96
| | | | | | Added krb5_context to all krb5_*() routines. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4815 dc483132-0cff-0310-8789-dd5450dbe970
* lintMark Eichin1994-08-141-11/+0
| | | | | | unused vars git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4135 dc483132-0cff-0310-8789-dd5450dbe970
* * *.c: "upgrade" to C Classic :-)Tom Yu1994-08-101-34/+73
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4106 dc483132-0cff-0310-8789-dd5450dbe970
* Included fixes submitted by Ari/Cliff, including a security fixTheodore Tso1994-06-151-37/+54
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3797 dc483132-0cff-0310-8789-dd5450dbe970
* As contributed by ISITheodore Tso1994-06-081-0/+781
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3681 dc483132-0cff-0310-8789-dd5450dbe970