Correct permissions in mkdir calls

The 'mode' parameter to mkdir() is in octal, so it should have a
leading 0. Also, directories need their 'x' bits set.

Change-Id: I95bdae777ed31a8f99d1eeb4974a9ceb8d85633d
diff --git a/opcontrol/opcontrol.cpp b/opcontrol/opcontrol.cpp
index 0552c8c..ecf4f10 100644
--- a/opcontrol/opcontrol.cpp
+++ b/opcontrol/opcontrol.cpp
@@ -323,11 +323,11 @@
         close(fd);
     }
 
-    if (mkdir(OP_DATA_DIR, 755)) {
+    if (mkdir(OP_DATA_DIR, 0755)) {
         fprintf(stderr, "Cannot create directory \"%s\": %s\n",
                 OP_DATA_DIR, strerror(errno));
     }
-    if (mkdir(OP_DATA_DIR"/samples", 644)) {
+    if (mkdir(OP_DATA_DIR"/samples", 0755)) {
         fprintf(stderr, "Cannot create directory \"%s\": %s\n",
                 OP_DATA_DIR"/samples", strerror(errno));
     }
@@ -339,7 +339,7 @@
 
     setup_session_dir();
 
-    if (mkdir(OP_DRIVER_BASE, 644)) {
+    if (mkdir(OP_DRIVER_BASE, 0755)) {
         fprintf(stderr, "Cannot create directory "OP_DRIVER_BASE": %s\n",
                 strerror(errno));
         return -1;