diff --git a/toolkit/components/osfile/osfile_unix_front.jsm b/toolkit/components/osfile/osfile_unix_front.jsm index 7c15c156f14..0bf2c047f79 100644 --- a/toolkit/components/osfile/osfile_unix_front.jsm +++ b/toolkit/components/osfile/osfile_unix_front.jsm @@ -142,7 +142,7 @@ */ File.prototype.setPosition = function setPosition(pos, whence) { if (whence === undefined) { - whence = Const.SEEK_START; + whence = Const.SEEK_SET; } return throw_on_negative("setPosition", UnixFile.lseek(this.fd, pos, whence)