Skip Menu | You are currently an anonymous guest. | Login | Return to Main | About rt.cpan.org
 

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.

X Report information
Id: 38479
Status: resolved
Left: 0 min
Priority: 0/0
Queue: Win32-FileSecurity

Owner: Nobody
Requestors: Robert.Davis [...] infor.com
Cc:
AdminCc:

Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



X History Display mode: Brief headersFull headers
#   Thu Aug 14 09:43:09 2008 Robert.Davis[...]infor.com - Ticket created  
Subject: 29869
Date: Thu, 14 Aug 2008 09:42:34 -0400
To: <"bug-Win32-FileSecurity"@rt.cpan.org>
From: "Robert Davis" <Robert.Davis[...]infor.com>
[text/plain 1k]
I just wanted to reiterate "ejannett" bug report and say that his patch
works great. I modified it slightly to the following which is a little
smaller and more like the original. Also I found this module *always*
fails on a computer that is logged into a domain because the files
contain an entry for domain\user which always fails on the
lookupaccountnamea() call.

Bob


diff -c

*** FileSecurity.xs Wed Aug 13 18:21:32 2008
--- org-src/Win32-FileSecurity-1.06/FileSecurity.xs Thu Apr 17
18:42:18 2008
***************
*** 450,458 ****
cbSID = 1024 ;
cchDomainName = 80 ;

- lpszServer = NULL ;
-
- /*
if ( lpszTemp = strchr( lpszAccount, '\\' ) ) {
lpszServer = lpszAccount ;
*lpszTemp = '\0' ;
--- 450,455 ----
***************
*** 469,475 ****
}
}
}
- */

bResult = LookupAccountNameA((LPCSTR) lpszServer,
(LPCSTR) lpszAccount,
--- 466,471 ----

#   Wed Aug 20 10:52:41 2008 JDB - Correspondence added  
[text/plain 68b]
Fixed in 1.07

http://code.google.com/p/libwin32/source/detail?r=430
#   Wed Aug 20 10:52:45 2008 RT_System - Status changed from 'new' to 'open'  
#   Wed Aug 20 10:52:48 2008 JDB - Status changed from 'open' to 'resolved'