utils.c (b9175c69691c8949bec97fb8f689b7d1efdb05bb) utils.c (36e852a172cba914383d7341c988128b2c667fbd)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 29 unchanged lines hidden (view full) ---

38#include "passwdutil.h"
39
40#define PWADMIN "/etc/default/passwd"
41
42#define MINWEEKS -1
43#define MAXWEEKS -1
44#define WARNWEEKS -1
45
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 29 unchanged lines hidden (view full) ---

38#include "passwdutil.h"
39
40#define PWADMIN "/etc/default/passwd"
41
42#define MINWEEKS -1
43#define MAXWEEKS -1
44#define WARNWEEKS -1
45
46extern repops_t files_repops, nis_repops,
47 nisplus_repops, ldap_repops, nss_repops;
46extern repops_t files_repops, nis_repops, ldap_repops, nss_repops;
48
49repops_t *rops[REP_LAST+1] = {
50 NULL,
51 &files_repops,
52 &nis_repops,
53 NULL,
47
48repops_t *rops[REP_LAST+1] = {
49 NULL,
50 &files_repops,
51 &nis_repops,
52 NULL,
54 &nisplus_repops,
55 NULL,
56 NULL,
57 NULL,
58 &ldap_repops,
59 NULL,
60 NULL,
61 NULL,
53 &ldap_repops,
54 NULL,
55 NULL,
56 NULL,
62 NULL,
63 NULL,
64 NULL,
65 NULL,
66 &nss_repops,
67};
68
69void
70free_pwd(struct passwd *pw)
71{
72 if (pw->pw_name) free(pw->pw_name);
73 if (pw->pw_passwd) free(pw->pw_passwd);

--- 157 unchanged lines hidden ---
57 &nss_repops,
58};
59
60void
61free_pwd(struct passwd *pw)
62{
63 if (pw->pw_name) free(pw->pw_name);
64 if (pw->pw_passwd) free(pw->pw_passwd);

--- 157 unchanged lines hidden ---