fix fd_file::get_mark

This commit is contained in:
Kelvin Sherlock 2016-11-04 15:36:30 -04:00
parent ec9e78c793
commit e9406cd870

View File

@ -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;
}