Skip Menu |

This queue is for tickets about the Win32-FileSecurity CPAN distribution.

Report information
The Basics
Id: 38479
Status: resolved
Priority: 0/
Queue: Win32-FileSecurity

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

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



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>
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 ----