From e9406cd8709e0cd4c20812ee1e6d0d419f78538d Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Fri, 4 Nov 2016 15:36:30 -0400 Subject: [PATCH] fix fd_file::get_mark --- native/file.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native/file.cpp b/native/file.cpp index 99e64bd..7071885 100644 --- a/native/file.cpp +++ b/native/file.cpp @@ -137,7 +137,7 @@ tool_return fd_file::get_mark() { if (_interactive) return 0; - off_t pos = ::lseek(_fd, 0, SEEK_SET); + off_t pos = ::lseek(_fd, 0, SEEK_CUR); if (pos < 0) return macos_error_from_errno(); return pos; }