2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-09-04 08:35:31 +00:00

update copyright notice

This commit is contained in:
Automatic Updater
2009-09-29 23:48:04 +00:00
parent 7f79131f9a
commit 61dd99bfae
9 changed files with 49 additions and 49 deletions

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC") * Copyright (C) 2004, 2005, 2007, 2009 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1999-2002 Internet Software Consortium. * Copyright (C) 1999-2002 Internet Software Consortium.
* *
* Permission to use, copy, modify, and/or distribute this software for any * Permission to use, copy, modify, and/or distribute this software for any
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE. * PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: main.h,v 1.16 2009/09/29 15:06:06 fdupont Exp $ */ /* $Id: main.h,v 1.17 2009/09/29 23:48:03 tbox Exp $ */
#ifndef NAMED_MAIN_H #ifndef NAMED_MAIN_H
#define NAMED_MAIN_H 1 #define NAMED_MAIN_H 1

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC") * Copyright (C) 2004, 2005, 2007, 2009 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2000, 2001 Internet Software Consortium. * Copyright (C) 2000, 2001 Internet Software Consortium.
* *
* Permission to use, copy, modify, and/or distribute this software for any * Permission to use, copy, modify, and/or distribute this software for any
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE. * PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: util.h,v 1.11 2009/09/29 15:06:06 fdupont Exp $ */ /* $Id: util.h,v 1.12 2009/09/29 23:48:03 tbox Exp $ */
#ifndef RNDC_UTIL_H #ifndef RNDC_UTIL_H
#define RNDC_UTIL_H 1 #define RNDC_UTIL_H 1
@@ -44,7 +44,7 @@ ISC_LANG_BEGINDECLS
void void
notify(const char *fmt, ...) ISC_FORMAT_PRINTF(1, 2); notify(const char *fmt, ...) ISC_FORMAT_PRINTF(1, 2);
ISC_PLATFORM_NORETURN_PRE void ISC_PLATFORM_NORETURN_PRE void
fatal(const char *format, ...) fatal(const char *format, ...)
ISC_FORMAT_PRINTF(1, 2) ISC_PLATFORM_NORETURN_POST; ISC_FORMAT_PRINTF(1, 2) ISC_PLATFORM_NORETURN_POST;

View File

@@ -1,5 +1,5 @@
/* /*
* Portions Copyright (C) 2004, 2007 Internet Systems Consortium, Inc. ("ISC") * Portions Copyright (C) 2004, 2007, 2009 Internet Systems Consortium, Inc. ("ISC")
* Portions Copyright (C) 2001, 2002 Internet Software Consortium. * Portions Copyright (C) 2001, 2002 Internet Software Consortium.
* *
* Permission to use, copy, modify, and/or distribute this software for any * Permission to use, copy, modify, and/or distribute this software for any
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE. * PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: AccountInfo.cpp,v 1.9 2009/09/29 04:37:08 marka Exp $ */ /* $Id: AccountInfo.cpp,v 1.10 2009/09/29 23:48:04 tbox Exp $ */
#ifndef UNICODE #ifndef UNICODE
#define UNICODE #define UNICODE
@@ -108,7 +108,7 @@ DisplayWinError(
int int
GetAccountPrivileges(char *name, wchar_t **PrivList, unsigned int *PrivCount, GetAccountPrivileges(char *name, wchar_t **PrivList, unsigned int *PrivCount,
char **Accounts, unsigned int *totalAccounts, char **Accounts, unsigned int *totalAccounts,
int maxAccounts) int maxAccounts)
{ {
LSA_HANDLE PolicyHandle; LSA_HANDLE PolicyHandle;
TCHAR AccountName[256]; /* static account name buffer */ TCHAR AccountName[256]; /* static account name buffer */
@@ -153,8 +153,8 @@ GetAccountPrivileges(char *name, wchar_t **PrivList, unsigned int *PrivCount,
/* Obtain the SID of the user/group. */ /* Obtain the SID of the user/group. */
if (!GetAccountSid(NULL, AccountName, &pSid)) if (!GetAccountSid(NULL, AccountName, &pSid))
continue; /* Try the next one */ continue; /* Try the next one */
/* Get the Privileges allocated to this SID */ /* Get the Privileges allocated to this SID */
if ((Status = GetPrivilegesOnAccount(PolicyHandle, pSid, if ((Status = GetPrivilegesOnAccount(PolicyHandle, pSid,
PrivList, PrivCount)) == STATUS_SUCCESS) PrivList, PrivCount)) == STATUS_SUCCESS)
{ {
iRetVal=RTN_OK; iRetVal=RTN_OK;
@@ -193,7 +193,7 @@ CreateServiceAccount(char *name, char *password) {
/* /*
* Set up the USER_INFO_1 structure. * Set up the USER_INFO_1 structure.
* USER_PRIV_USER: name is required here when creating an account * USER_PRIV_USER: name is required here when creating an account
* rather than an administrator or a guest. * rather than an administrator or a guest.
*/ */
@@ -239,7 +239,7 @@ AddPrivilegeToAcccount(LPTSTR name, LPWSTR PrivilegeName) {
if (!GetAccountSid(NULL, AccountName, &pSid)) if (!GetAccountSid(NULL, AccountName, &pSid))
return (RTN_NOACCOUNT); return (RTN_NOACCOUNT);
err = LsaNtStatusToWinError(SetPrivilegeOnAccount(PolicyHandle, err = LsaNtStatusToWinError(SetPrivilegeOnAccount(PolicyHandle,
pSid, PrivilegeName, TRUE)); pSid, PrivilegeName, TRUE));
LsaClose(PolicyHandle); LsaClose(PolicyHandle);
@@ -327,7 +327,7 @@ GetAccountSid(LPTSTR SystemName, LPTSTR AccountName, PSID *Sid) {
cbReferencedDomain)) == NULL) cbReferencedDomain)) == NULL)
__leave; __leave;
} }
else else
__leave; __leave;
} }
bSuccess = TRUE; bSuccess = TRUE;
@@ -370,7 +370,7 @@ SetPrivilegeOnAccount(LSA_HANDLE PolicyHandle, PSID AccountSid,
NTSTATUS NTSTATUS
GetPrivilegesOnAccount(LSA_HANDLE PolicyHandle, PSID AccountSid, GetPrivilegesOnAccount(LSA_HANDLE PolicyHandle, PSID AccountSid,
wchar_t **PrivList, unsigned int *PrivCount) wchar_t **PrivList, unsigned int *PrivCount)
{ {
NTSTATUS Status; NTSTATUS Status;
LSA_UNICODE_STRING *UserRights; LSA_UNICODE_STRING *UserRights;
@@ -395,7 +395,7 @@ GetPrivilegesOnAccount(LSA_HANDLE PolicyHandle, PSID AccountSid,
break; break;
} }
if (found != 0) { if (found != 0) {
PrivList[*PrivCount] = PrivList[*PrivCount] =
(wchar_t *)malloc(UserRights[i].MaximumLength); (wchar_t *)malloc(UserRights[i].MaximumLength);
if (PrivList[*PrivCount] == NULL) if (PrivList[*PrivCount] == NULL)
return (RTN_NOMEMORY); return (RTN_NOMEMORY);

View File

@@ -1,5 +1,5 @@
/* /*
* Portions Copyright (C) 2004, 2007 Internet Systems Consortium, Inc. ("ISC") * Portions Copyright (C) 2004, 2007, 2009 Internet Systems Consortium, Inc. ("ISC")
* Portions Copyright (C) 2001 Internet Software Consortium. * Portions Copyright (C) 2001 Internet Software Consortium.
* *
* Permission to use, copy, modify, and/or distribute this software for any * Permission to use, copy, modify, and/or distribute this software for any
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE. * PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: BINDInstall.cpp,v 1.8 2009/09/29 04:37:08 marka Exp $ */ /* $Id: BINDInstall.cpp,v 1.9 2009/09/29 23:48:04 tbox Exp $ */
/* /*
* Copyright (c) 1999-2000 by Nortel Networks Corporation * Copyright (c) 1999-2000 by Nortel Networks Corporation

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2004-2008 Internet Systems Consortium, Inc. ("ISC") * Copyright (C) 2004-2009 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1997-2001 Internet Software Consortium. * Copyright (C) 1997-2001 Internet Software Consortium.
* *
* Permission to use, copy, modify, and/or distribute this software for any * Permission to use, copy, modify, and/or distribute this software for any
@@ -16,7 +16,7 @@
*/ */
/* /*
* $Id: assertions.h,v 1.27 2009/09/29 15:06:07 fdupont Exp $ * $Id: assertions.h,v 1.28 2009/09/29 23:48:04 tbox Exp $
*/ */
/*! \file isc/assertions.h /*! \file isc/assertions.h
*/ */

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2004-2007 Internet Systems Consortium, Inc. ("ISC") * Copyright (C) 2004-2007, 2009 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1998-2001 Internet Software Consortium. * Copyright (C) 1998-2001 Internet Software Consortium.
* *
* Permission to use, copy, modify, and/or distribute this software for any * Permission to use, copy, modify, and/or distribute this software for any
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE. * PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: error.h,v 1.21 2009/09/29 15:06:07 fdupont Exp $ */ /* $Id: error.h,v 1.22 2009/09/29 23:48:04 tbox Exp $ */
#ifndef ISC_ERROR_H #ifndef ISC_ERROR_H
#define ISC_ERROR_H 1 #define ISC_ERROR_H 1

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2004-2007 Internet Systems Consortium, Inc. ("ISC") * Copyright (C) 2004-2007, 2009 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2001, 2003 Internet Software Consortium. * Copyright (C) 2001, 2003 Internet Software Consortium.
* *
* Permission to use, copy, modify, and/or distribute this software for any * Permission to use, copy, modify, and/or distribute this software for any
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE. * PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: refcount.h,v 1.16 2009/09/29 15:06:07 fdupont Exp $ */ /* $Id: refcount.h,v 1.17 2009/09/29 23:48:04 tbox Exp $ */
#ifndef ISC_REFCOUNT_H #ifndef ISC_REFCOUNT_H
#define ISC_REFCOUNT_H 1 #define ISC_REFCOUNT_H 1
@@ -28,7 +28,7 @@
#include <isc/util.h> #include <isc/util.h>
/*! \file isc/refcount.h /*! \file isc/refcount.h
* \brief Implements a locked reference counter. * \brief Implements a locked reference counter.
* *
* These functions may actually be * These functions may actually be
* implemented using macros, and implementations of these macros are below. * implemented using macros, and implementations of these macros are below.
@@ -42,7 +42,7 @@ ISC_LANG_BEGINDECLS
* Function prototypes * Function prototypes
*/ */
/* /*
* isc_result_t * isc_result_t
* isc_refcount_init(isc_refcount_t *ref, unsigned int n); * isc_refcount_init(isc_refcount_t *ref, unsigned int n);
* *

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2004, 2005, 2007, 2008 Internet Systems Consortium, Inc. ("ISC") * Copyright (C) 2004, 2005, 2007-2009 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2001 Internet Software Consortium. * Copyright (C) 2001 Internet Software Consortium.
* *
* Permission to use, copy, modify, and/or distribute this software for any * Permission to use, copy, modify, and/or distribute this software for any
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE. * PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: platform.h,v 1.18 2009/09/29 15:06:07 fdupont Exp $ */ /* $Id: platform.h,v 1.19 2009/09/29 23:48:04 tbox Exp $ */
#ifndef ISC_PLATFORM_H #ifndef ISC_PLATFORM_H
#define ISC_PLATFORM_H 1 #define ISC_PLATFORM_H 1

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2004, 2006, 2007 Internet Systems Consortium, Inc. ("ISC") * Copyright (C) 2004, 2006, 2007, 2009 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2001 Internet Software Consortium. * Copyright (C) 2001 Internet Software Consortium.
* *
* Permission to use, copy, modify, and/or distribute this software for any * Permission to use, copy, modify, and/or distribute this software for any
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE. * PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: ntgroups.c,v 1.11 2009/09/29 04:37:08 marka Exp $ */ /* $Id: ntgroups.c,v 1.12 2009/09/29 23:48:04 tbox Exp $ */
/* /*
* The NT Groups have two groups that are not well documented and are * The NT Groups have two groups that are not well documented and are
@@ -70,21 +70,21 @@ isc_ntsecurity_getaccountgroups(char *username, char **GroupList,
*totalGroups = 0; *totalGroups = 0;
/* /*
* Call the NetUserGetLocalGroups function * Call the NetUserGetLocalGroups function
* specifying information level 0. * specifying information level 0.
* *
* The LG_INCLUDE_INDIRECT flag specifies that the * The LG_INCLUDE_INDIRECT flag specifies that the
* function should also return the names of the local * function should also return the names of the local
* groups in which the user is indirectly a member. * groups in which the user is indirectly a member.
*/ */
nStatus = NetUserGetLocalGroups(NULL, nStatus = NetUserGetLocalGroups(NULL,
user, user,
dwLevel, dwLevel,
dwFlags, dwFlags,
(LPBYTE *) &pBuf, (LPBYTE *) &pBuf,
dwPrefMaxLen, dwPrefMaxLen,
&dwEntriesRead, &dwEntriesRead,
&dwTotalEntries); &dwTotalEntries);
/* /*
* See if the call succeeds, * See if the call succeeds,
*/ */
@@ -103,7 +103,7 @@ isc_ntsecurity_getaccountgroups(char *username, char **GroupList,
/* /*
* Loop through the entries * Loop through the entries
*/ */
for (i = 0; for (i = 0;
(i < dwEntriesRead && *totalGroups < maxgroups); i++) { (i < dwEntriesRead && *totalGroups < maxgroups); i++) {
assert(pTmpLBuf != NULL); assert(pTmpLBuf != NULL);
if (pTmpLBuf == NULL) if (pTmpLBuf == NULL)
@@ -127,17 +127,17 @@ isc_ntsecurity_getaccountgroups(char *username, char **GroupList,
if (pBuf != NULL) if (pBuf != NULL)
NetApiBufferFree(pBuf); NetApiBufferFree(pBuf);
/* /*
* Call the NetUserGetGroups function, specifying level 0. * Call the NetUserGetGroups function, specifying level 0.
*/ */
nStatus = NetUserGetGroups(NULL, nStatus = NetUserGetGroups(NULL,
user, user,
dwLevel, dwLevel,
(LPBYTE*)&pgrpBuf, (LPBYTE*)&pgrpBuf,
dwPrefMaxLen, dwPrefMaxLen,
&dwEntriesRead, &dwEntriesRead,
&dwTotalEntries); &dwTotalEntries);
/* /*
* See if the call succeeds, * See if the call succeeds,
*/ */
@@ -149,13 +149,13 @@ isc_ntsecurity_getaccountgroups(char *username, char **GroupList,
if (nStatus == NERR_UserNotFound) if (nStatus == NERR_UserNotFound)
dwEntriesRead = 0; dwEntriesRead = 0;
} }
if (pgrpBuf != NULL) { if (pgrpBuf != NULL) {
pTmpBuf = pgrpBuf; pTmpBuf = pgrpBuf;
/* /*
* Loop through the entries * Loop through the entries
*/ */
for (i = 0; for (i = 0;
(i < dwEntriesRead && *totalGroups < maxgroups); i++) { (i < dwEntriesRead && *totalGroups < maxgroups); i++) {
assert(pTmpBuf != NULL); assert(pTmpBuf != NULL);