diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-06-26 12:55:03 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-06-26 12:55:03 -0700 |
commit | 0eb96e7460785ae6c2f1e34c45dee2055d8c85af (patch) | |
tree | 17a3e1347f723bccf7b2888fb79b79017b7797b3 /src | |
parent | eabb7aca36fd1f843ba4693e7ab6aea50c3cad9b (diff) |
fix lseek bug with devices
Diffstat (limited to 'src')
-rw-r--r-- | src/library.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library.js b/src/library.js index cb94fccb..b9c13055 100644 --- a/src/library.js +++ b/src/library.js @@ -1495,7 +1495,7 @@ LibraryManager.library = { lseek: function(fildes, offset, whence) { // off_t lseek(int fildes, off_t offset, int whence); // http://pubs.opengroup.org/onlinepubs/000095399/functions/lseek.html - if (FS.streams[fildes] && !FS.streams[fildes].isDevice) { + if (FS.streams[fildes] && !FS.streams[fildes].object.isDevice) { var stream = FS.streams[fildes]; var position = offset; if (whence === 1) { // SEEK_CUR. |