Changeset 740 for vendor/current/source4/heimdal/kpasswd/kpasswd.c
- Timestamp:
- Nov 14, 2012, 12:59:34 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified vendor/current/source4/heimdal/kpasswd/kpasswd.c ¶
r414 r740 118 118 krb5_context context; 119 119 krb5_principal principal; 120 int optind = 0;121 120 krb5_get_init_creds_opt *opt; 122 121 krb5_ccache id = NULL; 123 122 int exit_value; 124 125 optind = krb5_program_setup(&context, argc, argv, 126 args, sizeof(args) / sizeof(args[0]), usage); 127 123 int optidx = 0; 124 125 setprogname(argv[0]); 126 127 if(getarg(args, sizeof(args) / sizeof(args[0]), argc, argv, &optidx)) 128 usage(1, args, sizeof(args) / sizeof(args[0])); 128 129 if (help_flag) 129 usage (0, args, sizeof(args) / sizeof(args[0])); 130 131 if(version_flag){ 132 print_version (NULL); 133 exit(0); 134 } 135 136 argc -= optind; 137 argv += optind; 130 usage(0, args, sizeof(args) / sizeof(args[0])); 131 if (version_flag) { 132 print_version(NULL); 133 return 0; 134 } 135 argc -= optidx; 136 argv += optidx; 138 137 139 138 ret = krb5_init_context (&context);
Note:
See TracChangeset
for help on using the changeset viewer.