Ignore:
Timestamp:
Nov 14, 2012, 12:59:34 PM (12 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update vendor to 3.6.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified vendor/current/source4/heimdal/kpasswd/kpasswd.c

    r414 r740  
    118118    krb5_context context;
    119119    krb5_principal principal;
    120     int optind = 0;
    121120    krb5_get_init_creds_opt *opt;
    122121    krb5_ccache id = NULL;
    123122    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]));
    128129    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;
    138137
    139138    ret = krb5_init_context (&context);
Note: See TracChangeset for help on using the changeset viewer.