svn commit: r251727 - stable/8/lib/libstand
Pedro F. Giffuni
pfg at FreeBSD.org
Fri Jun 14 03:21:54 UTC 2013
Author: pfg
Date: Fri Jun 14 03:21:53 2013
New Revision: 251727
URL: http://svnweb.freebsd.org/changeset/base/251727
Log:
MFC r251561:
libstand: Reset the seek pointer in ext2fs as done in UFS.
PR: 177328
Submitted by: Eric van Gyzen
Reviewed by: iedowse
Modified:
stable/8/lib/libstand/ext2fs.c
Directory Properties:
stable/8/ (props changed)
stable/8/lib/ (props changed)
stable/8/lib/libstand/ (props changed)
Modified: stable/8/lib/libstand/ext2fs.c
==============================================================================
--- stable/8/lib/libstand/ext2fs.c Fri Jun 14 02:51:03 2013 (r251726)
+++ stable/8/lib/libstand/ext2fs.c Fri Jun 14 03:21:53 2013 (r251727)
@@ -536,6 +536,7 @@ ext2fs_open(const char *upath, struct op
* Found terminal component.
*/
error = 0;
+ fp->f_seekp = 0;
out:
if (buf)
free(buf);
@@ -584,6 +585,7 @@ read_inode(ino_t inumber, struct open_fi
for (level = 0; level < NIADDR; level++)
fp->f_blkno[level] = -1;
fp->f_buf_blkno = -1;
+ fp->f_seekp = 0;
out:
free(buf);
More information about the svn-src-stable-8
mailing list