+2002-12-23 Ezra Peisach <epeisach@bu.edu>
+
+ * authorization.c, heuristic.c, ksu.h: Use uid_t instead of int in
+ arguments to fowner() and get_best_princ_for_target(). Signed
+ vs. unsigned int cleanup.
+
2002-08-29 Ken Raeburn <raeburn@mit.edu>
* Makefile.in: Revert $(S)=>/ change, for Windows support.
krb5_boolean fowner(fp, uid)
FILE *fp;
- int uid;
+ uid_t uid;
{
struct stat sbuf;
krb5_boolean retbool= FALSE;
int j =0;
char * err;
- int max_ln=0;
- int tln=0;
+ unsigned int max_ln=0;
+ unsigned int tln=0;
while(fcmd_arr[i]){
tln = strlen(fcmd_arr[i]);
char ***combined_list;
{
- int c1 =0, c2 = 0, i=0, j=0;
+ unsigned int c1 =0, c2 = 0, i=0, j=0;
char ** tlist;
if (! list1){
krb5_error_code retval =0;
krb5_boolean found = FALSE;
char * out_cmd = NULL;
- int i=0, j=0, found_count = 0, k=0;
+ unsigned int i=0, j=0, found_count = 0, k=0;
char ** temp_filt_list;
*k5users_filt_list = NULL;
struct passwd *pwd;
int k5login_flag =0;
int k5users_flag =0;
- FILE * login_fp, * users_fp;
+ FILE * login_fp = NULL , * users_fp = NULL;
char ** k5login_list = NULL, ** k5users_list = NULL;
char ** k5users_filt_list = NULL;
char ** combined_list = NULL;
cc_source, options, cmd,
hostname, client, path_out)
krb5_context context;
- int source_uid;
- int target_uid;
+ uid_t source_uid;
+ uid_t target_uid;
char *source_user;
char *target_user;
krb5_ccache cc_source;
extern void printtime (time_t);
/* authorization.c */
-extern krb5_boolean fowner (FILE *, int);
+extern krb5_boolean fowner (FILE *, uid_t);
extern krb5_error_code krb5_authorization
(krb5_context, krb5_principal, const char *, char *,
extern char * get_next_token (char **);
-extern krb5_boolean fowner (FILE *, int);
-
extern void init_auth_names (char *);
/* main.c */
(krb5_context, krb5_principal, char **, krb5_boolean *);
extern krb5_error_code get_best_princ_for_target
- (krb5_context, int, int, char *, char *, krb5_ccache,
+ (krb5_context, uid_t, uid_t, char *, char *, krb5_ccache,
opt_info *, char *, char *, krb5_principal *, int *);
extern krb5_error_code ksu_tgtname (krb5_context, const krb5_data *,