Fix windows build from previous check in.
This commit is contained in:
parent
e2db0e3ecc
commit
39e403c1d3
@ -2189,10 +2189,10 @@ namespace Novell.CASA.GUI
|
|||||||
{
|
{
|
||||||
if (Directory.Exists(sDirectory))
|
if (Directory.Exists(sDirectory))
|
||||||
{
|
{
|
||||||
|
#if LINUX
|
||||||
// make sure user as rights to read and write to this directory
|
// make sure user as rights to read and write to this directory
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
#if LINUX
|
|
||||||
int rcode = Mono.Unix.Native.Syscall.access(sDirectory,
|
int rcode = Mono.Unix.Native.Syscall.access(sDirectory,
|
||||||
Mono.Unix.Native.AccessModes.R_OK |
|
Mono.Unix.Native.AccessModes.R_OK |
|
||||||
Mono.Unix.Native.AccessModes.W_OK );
|
Mono.Unix.Native.AccessModes.W_OK );
|
||||||
@ -2210,7 +2210,9 @@ namespace Novell.CASA.GUI
|
|||||||
{
|
{
|
||||||
CommonGUI.DisplayMessage(Gtk.MessageType.Error, "Not allowed\r\n" + sDirectory);
|
CommonGUI.DisplayMessage(Gtk.MessageType.Error, "Not allowed\r\n" + sDirectory);
|
||||||
}
|
}
|
||||||
#endif
|
#else
|
||||||
|
entryStorageDirectory.Text = sDirectory;
|
||||||
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user