]> git.sesse.net Git - remoteglot/commitdiff
serve-analysis.js does not need write access.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 24 Jan 2016 21:54:05 +0000 (22:54 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 24 Jan 2016 21:54:05 +0000 (22:54 +0100)
www/serve-analysis.js

index 2a53e36ae57714ed3113b2d6bfb24709ab671481..1622be1e2d987fa7a657efb55aa8748022d6586a 100644 (file)
@@ -139,7 +139,7 @@ var reread_file = function(event, filename) {
        json_lock = 1;
 
        console.log("Rereading " + json_filename);
        json_lock = 1;
 
        console.log("Rereading " + json_filename);
-       fs.open(json_filename, 'r+', function(err, fd) {
+       fs.open(json_filename, 'r', function(err, fd) {
                if (err) throw err;
                fs.fstat(fd, function(err, st) {
                        if (err) throw err;
                if (err) throw err;
                fs.fstat(fd, function(err, st) {
                        if (err) throw err;