+
+Wed Nov 30 19:09:50 CET 2005 Paolo Molaro <lupus@ximian.com>
+
+ * WindowsIdentity.cs: remove check for an invalid user token on Posix
+ systems and check for PlatformID.Unix, too.
+
2005-10-28 Sebastien Pouliot <sebastien@ximian.com>
* IdentityReferenceCollection.cs: Removed virtual from Count and
private SerializationInfo _info;
static private IntPtr invalidWindows = IntPtr.Zero;
- // that seems to be the value used for (at least) AIX and MacOSX
- static private IntPtr invalidPosix = (IntPtr) unchecked (-2);
[SecurityPermission (SecurityAction.Demand, ControlPrincipal=true)]
public WindowsIdentity (IntPtr userToken)
}
#endif
private static bool IsPosix {
- get { return ((int) Environment.Platform == 128); }
+ get { return ((int) Environment.Platform == 128) || ((int)Environment.Platform == 4); }
}
private void SetToken (IntPtr token)
{
if (IsPosix) {
- if (token == invalidPosix)
- throw new ArgumentException ("Invalid token");
_token = token;
// apply defaults