Now specifies all the parameters open() wants on linux.
authorJustin Wind <justin.wind@gmail.com>
Fri, 22 Feb 2013 06:57:10 +0000 (22:57 -0800)
committerJustin Wind <justin.wind@gmail.com>
Fri, 22 Feb 2013 06:57:10 +0000 (22:57 -0800)
reservoir_sample.c
version.h

index 674506250024495fdd8d50bd40899f80985b667e..1c64f6fe5598179395241f48c643df05c4b94a45 100644 (file)
@@ -357,7 +357,7 @@ int main(int argc, char *argv[]) {
        }
 
        if (status_filename) {
-               options_.status_fd = open(status_filename, O_RDONLY|O_APPEND|O_CREAT);
+               options_.status_fd = open(status_filename, O_RDONLY|O_APPEND|O_CREAT, 0666);
                if (options_.status_fd < 0) {
                        NOTIFY_ERROR("could not open status file '%s'", status_filename);
                        exit(EX_OSERR);
index 9191a862a793703416ef169862de9f6c63c908f4..73e992ed17fb6e6e15f733cbe90ac4c729b24dd7 100644 (file)
--- a/version.h
+++ b/version.h
@@ -3,8 +3,8 @@
 
 #define VERSION_MAJOR 1
 #define VERSION_MINOR 2
-#define VERSION_EXTRA_STR ""
-#define VERSION_STR "1.2"
+#define VERSION_EXTRA_STR "1"
+#define VERSION_STR "1.2-1"
 #define VERSION_DATE  "2013-02-22"
 
 #endif