smb_privilege.c (dc20a3024900c47dd2ee44b9707e6df38f7d62a5) | smb_privilege.c (bbf6f00c25b6a2bed23c35eac6d62998ecdb338c) |
---|---|
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 --- 5 unchanged lines hidden (view full) --- 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15 * If applicable, add the following below this CDDL HEADER, with the 16 * fields enclosed by brackets "[]" replaced with your own identifying 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21/* | 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 --- 5 unchanged lines hidden (view full) --- 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15 * If applicable, add the following below this CDDL HEADER, with the 16 * fields enclosed by brackets "[]" replaced with your own identifying 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21/* |
22 * Copyright 2008 Sun Microsystems, Inc. All rights reserved. | 22 * Copyright 2009 Sun Microsystems, Inc. All rights reserved. |
23 * Use is subject to license terms. 24 */ 25 | 23 * Use is subject to license terms. 24 */ 25 |
26#pragma ident "%Z%%M% %I% %E% SMI" 27 | |
28/* 29 * This module provides the interface to the built-in privilege names 30 * and id's. NT privileges are known on the network using strings. Each 31 * system assigns locally unique identifiers (LUID) for use within the 32 * system. Each built-in privilege also has a display-name, which is a 33 * short description of the privilege. The functions here provide an 34 * interface to map between LUIDs, names and display names. 35 */ --- 116 unchanged lines hidden (view full) --- 152 int i; 153 154 if (name == 0) 155 return (0); 156 157 for (i = SE_MIN_LUID; i <= SE_MAX_LUID; ++i) { 158 entry = &priv_table[i]; 159 | 26/* 27 * This module provides the interface to the built-in privilege names 28 * and id's. NT privileges are known on the network using strings. Each 29 * system assigns locally unique identifiers (LUID) for use within the 30 * system. Each built-in privilege also has a display-name, which is a 31 * short description of the privilege. The functions here provide an 32 * interface to map between LUIDs, names and display names. 33 */ --- 116 unchanged lines hidden (view full) --- 150 int i; 151 152 if (name == 0) 153 return (0); 154 155 for (i = SE_MIN_LUID; i <= SE_MAX_LUID; ++i) { 156 entry = &priv_table[i]; 157 |
160 if (utf8_strcasecmp(name, entry->name) == 0) | 158 if (smb_strcasecmp(name, entry->name, 0) == 0) |
161 return (entry); 162 } 163 164 return (0); 165} 166 167/* 168 * smb_privset_size --- 209 unchanged lines hidden --- | 159 return (entry); 160 } 161 162 return (0); 163} 164 165/* 166 * smb_privset_size --- 209 unchanged lines hidden --- |