]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/mini-os.git/commit
minios: fix bug in lseek for mini-os
authorMatthew Fioravante <matthew.fioravante@jhuapl.edu>
Mon, 19 Nov 2012 12:59:47 +0000 (12:59 +0000)
committerMatthew Fioravante <matthew.fioravante@jhuapl.edu>
Mon, 19 Nov 2012 12:59:47 +0000 (12:59 +0000)
commitfdab49ca4eb8d5e5f07bf908ca5cff7a98955181
treedd892baec11b609a7eb97ebbcb25c7b1d4729aee
parente9288ccb938f576d61c7df0383f5d730562148f1
minios: fix bug in lseek for mini-os

lseek always used files[fd].file.offset. It should
use the offset of whatever union member is actually
being used.

Signed-off-by: Matthew Fioravante <matthew.fioravante@jhuapl.edu>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
lib/sys.c