Diff
Not logged in

Differences From Artifact [ce01343824]:

To Artifact [db2bf8df80]:


1
2
3
4
5
6
7
8
9
10
11

12
13
14
15
16
17
18
1
2
3
4
5
6
7
8
9
10

11
12
13
14
15
16
17
18










-
+







/*
 * tclWinTest.c --
 *
 *	Contains commands for platform specific tests on Windows.
 *
 * Copyright (c) 1996 Sun Microsystems, Inc.
 *
 * See the file "license.terms" for information on usage and redistribution of
 * this file, and for a DISCLAIMER OF ALL WARRANTIES.
 *
 * RCS: @(#) $Id: tclWinTest.c,v 1.19 2007/04/16 13:36:36 dkf Exp $
 * RCS: @(#) $Id: tclWinTest.c,v 1.20 2007/08/06 17:25:50 kennykb Exp $
 */

#include "tclInt.h"

/*
 * For TestplatformChmod on Windows
 */
672
673
674
675
676
677
678
679
680



681
682

683
684
685
686
687
688
689
672
673
674
675
676
677
678


679
680
681
682

683
684
685
686
687
688
689
690







-
-
+
+
+

-
+








    /* Get the World SID */
    userSid = (SID*) ckalloc(getSidLengthRequiredProc((UCHAR)1));
    initializeSidProc( userSid, &userSidAuthority, (BYTE)1);
    *(getSidSubAuthorityProc( userSid, 0)) = SECURITY_WORLD_RID;

    /* If curAclPresent == false then curAcl and curAclDefaulted not valid */
    if (!getSecurityDescriptorDaclProc(secDesc, &curAclPresent, 
      &curAcl, &curAclDefaulted))
    if (!getSecurityDescriptorDaclProc((PSECURITY_DESCRIPTOR)secDesc,
				       &curAclPresent, &curAcl,
				       &curAclDefaulted)) {
	goto done;

    }
    if (!curAclPresent || !curAcl) {
	ACLSize.AclBytesInUse = 0;
	ACLSize.AceCount = 0;
    } else if (!getAclInformationProc(curAcl, &ACLSize, sizeof(ACLSize), 
      AclSizeInformation))
	goto done;