util.datamanager: Add missing mode flag to seek call
authorKim Alvefur <zash@zash.se>
Tue, 31 Jul 2012 06:23:55 +0000 (08:23 +0200)
committerKim Alvefur <zash@zash.se>
Tue, 31 Jul 2012 06:23:55 +0000 (08:23 +0200)
util/datamanager.lua

index 0eb3d58adf0ca7452094e7bef6110318eaca78bd..79be07b06c0ded287862a1d0c5603ff7f397358b 100644 (file)
@@ -43,7 +43,7 @@ if not fallocate then -- Fallback
                if not ok then
                        return ok, msg;
                end
-               f:seek(offset);
+               f:seek("set", offset);
                return true;
        end
 end