]> arthur.barton.de Git - bup.git/commit
Assume FS_IOC_GETFLAGS may trash output on error
authorMark J Hewitt <m.hewitt@computer.org>
Mon, 11 Aug 2014 10:36:19 +0000 (11:36 +0100)
committerRob Browning <rlb@defaultvalue.org>
Mon, 11 Aug 2014 17:53:00 +0000 (12:53 -0500)
commit318870668e54342a47a85022c4b8e34febc14ebf
tree33c57892efe89bef0b001b5522b7f2c2aefc185c
parentad8ec2cb2781114af06968766c58776ed7ce20e8
Assume FS_IOC_GETFLAGS may trash output on error

Don't assert that the attr value is reasonable (<= UINT_MAX) when
FS_IOC_GETFLAGS returns an error, because it may change the the value
to something invalid in that situation.

This has been observed to occur when, for example, the underlying
filesystem does not support the operation,

Signed-off-by: Mark J Hewitt <m.hewitt@computer.org>
[rlb@defaultvalue.org: adjust commit message]
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/_helpers.c