Bug 133485. Set .miCASA files as hidden
This commit is contained in:
parent
b1283d3b62
commit
daf881aa7c
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Dec 20 11:17:38 MST 2005 - jnorman@novell.com
|
||||||
|
|
||||||
|
- Bug 133485. Set .miCASA files as hidden
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Dec 20 10:40:38 MST 2005 - jnorman@novell.com
|
Tue Dec 20 10:40:38 MST 2005 - jnorman@novell.com
|
||||||
|
|
||||||
|
@ -49,6 +49,8 @@ namespace sscs.crypto
|
|||||||
#if LINUX
|
#if LINUX
|
||||||
Mono.Unix.Syscall.chmod(fileName,Mono.Unix.FilePermissions.S_IRUSR | Mono.Unix.FilePermissions.S_IWUSR);
|
Mono.Unix.Syscall.chmod(fileName,Mono.Unix.FilePermissions.S_IRUSR | Mono.Unix.FilePermissions.S_IWUSR);
|
||||||
#endif
|
#endif
|
||||||
|
// make hidden
|
||||||
|
File.SetAttributes(fileName, FileAttributes.Hidden);
|
||||||
|
|
||||||
SHA256 sha = new SHA256Managed();
|
SHA256 sha = new SHA256Managed();
|
||||||
byte[] hash = sha.ComputeHash(key);
|
byte[] hash = sha.ComputeHash(key);
|
||||||
@ -154,6 +156,9 @@ namespace sscs.crypto
|
|||||||
#if LINUX
|
#if LINUX
|
||||||
Mono.Unix.Syscall.chmod(fileName,Mono.Unix.FilePermissions.S_IRUSR | Mono.Unix.FilePermissions.S_IWUSR);
|
Mono.Unix.Syscall.chmod(fileName,Mono.Unix.FilePermissions.S_IRUSR | Mono.Unix.FilePermissions.S_IWUSR);
|
||||||
#endif
|
#endif
|
||||||
|
// make hidden
|
||||||
|
File.SetAttributes(fileName, FileAttributes.Hidden);
|
||||||
|
|
||||||
SHA256 sha = new SHA256Managed();
|
SHA256 sha = new SHA256Managed();
|
||||||
|
|
||||||
byte[] hash = sha.ComputeHash(xmlData);
|
byte[] hash = sha.ComputeHash(xmlData);
|
||||||
@ -358,6 +363,9 @@ namespace sscs.crypto
|
|||||||
#if LINUX
|
#if LINUX
|
||||||
Mono.Unix.Syscall.chmod(fileName,Mono.Unix.FilePermissions.S_IRUSR | Mono.Unix.FilePermissions.S_IWUSR);
|
Mono.Unix.Syscall.chmod(fileName,Mono.Unix.FilePermissions.S_IRUSR | Mono.Unix.FilePermissions.S_IWUSR);
|
||||||
#endif
|
#endif
|
||||||
|
// make hidden
|
||||||
|
File.SetAttributes(fileName, FileAttributes.Hidden);
|
||||||
|
|
||||||
csEncrypt = new CryptoStream(fsEncrypt, encryptor,
|
csEncrypt = new CryptoStream(fsEncrypt, encryptor,
|
||||||
CryptoStreamMode.Write);
|
CryptoStreamMode.Write);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user