mirror of
https://github.com/ksherlock/mpw.git
synced 2025-02-16 12:30:53 +00:00
fix fd_file::get_mark
This commit is contained in:
parent
ec9e78c793
commit
e9406cd870
@ -137,7 +137,7 @@ tool_return<size_t> 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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user