Revert PeerCred back to Mono.Posix namespace
This commit is contained in:
parent
981c2f6ea4
commit
a603dadba3
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 11 21:50:59 MST 2006 - jnorman@novell.com
|
||||
|
||||
- Revert Mono.Unix.PeerCred back to Mono.Posix.PeerCred to run
|
||||
on MONO 1.1.13
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 11 20:31:12 IST 2006 - smanojna@novell.com
|
||||
|
||||
|
@ -34,7 +34,8 @@ namespace sscs.common
|
||||
override internal string GetUserHomeDir()
|
||||
{
|
||||
uint uid = (uint)userId.GetUID();
|
||||
return Mono.Unix.UnixUser.GetHomeDirectory(uid);
|
||||
Mono.Unix.UnixUserInfo uui = new Mono.Unix.UnixUserInfo(uid);
|
||||
return uui.HomeDirectory;
|
||||
}
|
||||
|
||||
|
||||
|
@ -24,7 +24,9 @@ class UnixIPCChannel : IPCChannel
|
||||
{
|
||||
CSSSLogger.ExecutionTrace(this);
|
||||
clientSocket = connectedSocket;
|
||||
PeerCred cred = new PeerCred(connectedSocket);
|
||||
Mono.Posix.PeerCred cred;
|
||||
cred = new Mono.Posix.PeerCred(connectedSocket);
|
||||
|
||||
userId = new UnixUserIdentifier(cred.UserID);
|
||||
}
|
||||
|
||||
|
@ -47,7 +47,7 @@ namespace sscs.crypto
|
||||
//Encrypt the data to a file
|
||||
fsEncrypt = new FileStream(fileName, FileMode.Create);
|
||||
#if LINUX
|
||||
Mono.Unix.Syscall.chmod(fileName,Mono.Unix.FilePermissions.S_IRUSR | Mono.Unix.FilePermissions.S_IWUSR);
|
||||
Mono.Unix.Native.Syscall.chmod(fileName,Mono.Unix.Native.FilePermissions.S_IRUSR | Mono.Unix.Native.FilePermissions.S_IWUSR);
|
||||
#endif
|
||||
// make hidden
|
||||
File.SetAttributes(fileName, FileAttributes.Hidden);
|
||||
@ -154,7 +154,7 @@ namespace sscs.crypto
|
||||
//Encrypt the data to a file
|
||||
fsEncrypt = new FileStream(fileName, FileMode.Create);
|
||||
#if LINUX
|
||||
Mono.Unix.Syscall.chmod(fileName,Mono.Unix.FilePermissions.S_IRUSR | Mono.Unix.FilePermissions.S_IWUSR);
|
||||
Mono.Unix.Native.Syscall.chmod(fileName,Mono.Unix.Native.FilePermissions.S_IRUSR | Mono.Unix.Native.FilePermissions.S_IWUSR);
|
||||
#endif
|
||||
// make hidden
|
||||
File.SetAttributes(fileName, FileAttributes.Hidden);
|
||||
@ -361,7 +361,7 @@ namespace sscs.crypto
|
||||
//Encrypt the data to a file
|
||||
fsEncrypt = new FileStream(fileName,FileMode.Create);
|
||||
#if LINUX
|
||||
Mono.Unix.Syscall.chmod(fileName,Mono.Unix.FilePermissions.S_IRUSR | Mono.Unix.FilePermissions.S_IWUSR);
|
||||
Mono.Unix.Native.Syscall.chmod(fileName,Mono.Unix.Native.FilePermissions.S_IRUSR | Mono.Unix.Native.FilePermissions.S_IWUSR);
|
||||
#endif
|
||||
// make hidden
|
||||
File.SetAttributes(fileName, FileAttributes.Hidden);
|
||||
|
Loading…
Reference in New Issue
Block a user