• Eric Van Hensbergen's avatar
    9p: fix O_APPEND in legacy mode · 2e4bef41
    Eric Van Hensbergen authored
    The legacy protocol's open operation doesn't handle an append operation
    (it is expected that the client take care of it).  We were incorrectly
    passing the extended protocol's flag through even in legacy mode.  This
    was reported in bugzilla report #10689.  This patch fixes the problem
    by disallowing extended protocol open modes from being passed in legacy
    mode and implemented append functionality on the client side by adding
    a seek after the open.
    Signed-off-by: default avatarEric Van Hensbergen <ericvh@gmail.com>
    2e4bef41
vfs_file.c 4.85 KB