am 041ee6cc: Add timer mode in opcontrol.
Merge commit '041ee6ccda354960ebc1e1ccfff78685ec5326e1' into gingerbread-plus-aosp
* commit '041ee6ccda354960ebc1e1ccfff78685ec5326e1':
Add timer mode in opcontrol.
diff --git a/opcontrol/opcontrol.cpp b/opcontrol/opcontrol.cpp
index f8031a6..3eb0d28 100644
--- a/opcontrol/opcontrol.cpp
+++ b/opcontrol/opcontrol.cpp
@@ -326,11 +326,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));
}
@@ -342,7 +342,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;