From 39e403c1d3a52329e2982e67797216162acbbb28 Mon Sep 17 00:00:00 2001 From: Jim Norman Date: Wed, 27 Sep 2006 21:18:51 +0000 Subject: [PATCH] Fix windows build from previous check in. --- CASA/gui/CasaMain.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/CASA/gui/CasaMain.cs b/CASA/gui/CasaMain.cs index 4fbc4368..3a814dd8 100644 --- a/CASA/gui/CasaMain.cs +++ b/CASA/gui/CasaMain.cs @@ -2189,10 +2189,10 @@ namespace Novell.CASA.GUI { if (Directory.Exists(sDirectory)) { +#if LINUX // make sure user as rights to read and write to this directory try - { -#if LINUX + { int rcode = Mono.Unix.Native.Syscall.access(sDirectory, Mono.Unix.Native.AccessModes.R_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); } -#endif +#else + entryStorageDirectory.Text = sDirectory; +#endif } else