[pywin32-bugs] [ pywin32-Bugs-2392746 ] GetNamedSecurityInfo crashes Python with SE_LMSHARE
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: SourceForge.net <no...@so...> - 2008-12-06 17:47:15
|
Bugs item #2392746, was opened at 2008-12-05 09:21 Message generated for change (Comment added) made by rupole You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=2392746&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: win32 Group: None Status: Open Resolution: None >Priority: 9 Private: No Submitted By: Tim Golden (tjgolden) >Assigned to: Roger Upole (rupole) Summary: GetNamedSecurityInfo crashes Python with SE_LMSHARE Initial Comment: This code causes Python to crash completely. Python 2.6; pywin32 212; Win XP SP3. Haven't looked at the source yet nor run it through the debugger. import win32security win32security.GetNamedSecurityInfo ( "C$", win32security.SE_LMSHARE, win32security.OWNER_SECURITY_INFORMATION ) ---------------------------------------------------------------------- >Comment By: Roger Upole (rupole) Date: 2008-12-06 12:47 Message: It appears the api function is returning NULL for the security descriptor even though the call completed successfully. Never seen this with any other type of securable object, or even a normal non-administrative share. Usually if there is no info to be returned, you'll get an empty security descriptor rather than null. Any preferences on how to handle this? We could a) raise an exception anyway b) return None c) construct and return an empty security descriptor to be consistent with how this function works everwhere else ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=2392746&group_id=78018 |