create the history savedir on uci_save() if it does not exist
[project/uci.git] / uci.h
diff --git a/uci.h b/uci.h
index ab65d1c..5cd36e0 100644 (file)
--- a/uci.h
+++ b/uci.h
@@ -32,7 +32,8 @@
 
 #define UCI_CONFDIR "/etc/config"
 #define UCI_SAVEDIR "/tmp/.uci"
-#define UCI_FILEMODE   0600
+#define UCI_DIRMODE 0700
+#define UCI_FILEMODE 0600
 
 enum
 {