projects
/
users
/
heikki
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18e6159
)
Backpatch fseeko fix for seeking from end of file.
author
Bruce Momjian
<bruce@momjian.us>
Fri, 12 Aug 2005 00:29:22 +0000
(
00:29
+0000)
committer
Bruce Momjian
<bruce@momjian.us>
Fri, 12 Aug 2005 00:29:22 +0000
(
00:29
+0000)
src/port/fseeko.c
patch
|
blob
|
blame
|
history
diff --git
a/src/port/fseeko.c
b/src/port/fseeko.c
index ed8b8b9b577737917e4579743629a9017cb32dad..ec9ce21eebdb1ae3a9dafa33b9cb628d5479c596 100644
(file)
--- a/
src/port/fseeko.c
+++ b/
src/port/fseeko.c
@@
-8,7
+8,7
@@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/port/fseeko.c,v 1.17
2004/12/31 22:03:53 pgsql
Exp $
+ * $PostgreSQL: pgsql/src/port/fseeko.c,v 1.17
.4.1 2005/08/12 00:29:22 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
@@
-72,6
+72,7
@@
fseeko(FILE *stream, off_t offset, int whence)
if (fstat(fileno(stream), &filestat) != 0)
goto failure;
floc = filestat.st_size;
+ floc += offset;
if (fsetpos(stream, &floc) != 0)
goto failure;
#ifdef bsdi