]> wimlib.net Git - wimlib/commit
resource.c: Don't call lseek() if not necessary
authorEric Biggers <ebiggers3@gmail.com>
Tue, 27 May 2014 02:22:23 +0000 (21:22 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Tue, 27 May 2014 02:22:23 +0000 (21:22 -0500)
commit4a6f090f05ef6959a547b3d40940897d879ce050
tree06e4895cff85c3374eca3a124c08e7dcb2290147
parent66592dd7dcf325b39ca110ba53fa6443d0b9825f
resource.c:  Don't call lseek() if not necessary

To be reading a pipable resource from a pipe, is_pipable must be set in
the 'struct wim_resource_spec', so check that first before calling
filedes_is_seekable().
src/resource.c