in reply to Win32::FileSecurity weirdness

This is a serious bug in Win32::FileSecurity. In FileSecurity.xs, Set iterates over the passed hash (reference) and then does this on the key:
if ( lpszTemp = strchr( lpszAccount, '\\' ) ) { lpszServer = lpszAccount ; *lpszTemp = '\0' ; lpszAccount = lpszTemp + 1 ;
(It does this in order to call LookupAccountNameA((LPCSTR) lpszServer, (LPCSTR) lpszAccount, ...).

This is just wrong. Please file a bug report at http://rt.cpan.org/NoAuth/Bugs.html?Dist=libwin32.

Hashes share key values, which is how this affects the other hashes. I don't see any workaround for this without fixing Win32::FileSecurity.xs

Replies are listed 'Best First'.
Re^2: Win32::FileSecurity weirdness
by Anonymous Monk on Oct 03, 2005 at 15:00 UTC
    Can anyone recommend a workaround?