You've already forked linux-packaging-mono
Imported Upstream version 6.0.0.172
Former-commit-id: f3cc9b82f3e5bd8f0fd3ebc098f789556b44e9cd
This commit is contained in:
parent
8016999e4d
commit
64ac736ec5
@ -151,10 +151,10 @@ namespace System {
|
||||
public static string CurrentDirectory
|
||||
{
|
||||
get {
|
||||
return Directory.GetCurrentDirectory ();
|
||||
return Directory.InsecureGetCurrentDirectory ();
|
||||
}
|
||||
set {
|
||||
Directory.SetCurrentDirectory (value);
|
||||
Directory.InsecureSetCurrentDirectory (value);
|
||||
}
|
||||
}
|
||||
|
||||
@ -904,7 +904,16 @@ namespace System {
|
||||
}
|
||||
#endif
|
||||
[MethodImplAttribute (MethodImplOptions.InternalCall)]
|
||||
internal static extern void InternalSetEnvironmentVariable (string variable, string value);
|
||||
internal unsafe static extern void InternalSetEnvironmentVariable (char *variable, int variable_length,
|
||||
char *value, int value_length);
|
||||
|
||||
internal unsafe static void InternalSetEnvironmentVariable (string variable, string value)
|
||||
{
|
||||
fixed (char *fixed_variable = variable)
|
||||
fixed (char *fixed_value = value)
|
||||
InternalSetEnvironmentVariable (fixed_variable, variable?.Length ?? 0,
|
||||
fixed_value, value?.Length ?? 0);
|
||||
}
|
||||
|
||||
[SecurityPermission (SecurityAction.LinkDemand, UnmanagedCode=true)]
|
||||
public static void FailFast (string message)
|
||||
@ -977,7 +986,7 @@ namespace System {
|
||||
internal extern static string internalGetGacPath ();
|
||||
#endif
|
||||
[MethodImplAttribute (MethodImplOptions.InternalCall)]
|
||||
private extern static string [] GetLogicalDrivesInternal ();
|
||||
internal extern static string [] GetLogicalDrivesInternal ();
|
||||
|
||||
[MethodImplAttribute (MethodImplOptions.InternalCall)]
|
||||
private extern static string [] GetEnvironmentVariableNames ();
|
||||
|
Reference in New Issue
Block a user