diff --git a/lib/libstand/ufs.c b/lib/libstand/ufs.c index 6a3d75849532..169991fb9fb2 100644 --- a/lib/libstand/ufs.c +++ b/lib/libstand/ufs.c @@ -191,6 +191,7 @@ read_inode(inumber, f) fp->f_blkno[level] = -1; fp->f_buf_blkno = -1; } + fp->f_seekp = 0; out: free(buf); return (rc); @@ -685,6 +686,7 @@ ufs_open(upath, f) * Found terminal component. */ rc = 0; + fp->f_seekp = 0; out: if (buf) free(buf);