commit | d5e70f571ec368f2ac5bb3c288b85aa956dad48c | [log] [tgz] |
---|---|---|
author | Steve Ellcey <sellcey@cavium.com> | Thu Mar 02 08:52:53 2017 -0800 |
committer | Cyril Hrubis <chrubis@suse.cz> | Fri Mar 03 10:47:05 2017 +0100 |
tree | 6b73df997e3d5ac087a90e445b9093615f5fb183 | |
parent | f8c96804e5e89d360707c9670b18221b11cf3858 [diff] |
bin/ftest02: Fix negative lseek offset expression. Cast the result of sizeof to (off_t) so that we have a signed value before we negate it. Otherwise we will get the wrong value in cases where sizeof returns a 32 bit unsigned type and off_t is a 64 bit signed type. This problem shows up on x86_64 when compiling with -mx32. This fixes LTP issue #135. Signed-off-by: Steve Ellcey <sellcey@caviumnetworks.com> Acked-by: Cyril Hrubis <chrubis@suse.cz>