diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2018-08-06 09:38:59 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2018-08-06 09:38:59 +0200 |
commit | 5871d604cdcc45ab9b51ea2c5684a9cb81622a8a (patch) | |
tree | 6ef570dc804d80030bc4763e62b8f6843fde66ae | |
parent | f6fe7488e3fad3a7eea7dbf537d05f3a971c44d6 (diff) | |
download | libssh-5871d604cdcc45ab9b51ea2c5684a9cb81622a8a.tar.gz libssh-5871d604cdcc45ab9b51ea2c5684a9cb81622a8a.tar.xz libssh-5871d604cdcc45ab9b51ea2c5684a9cb81622a8a.zip |
tests: Use fstat instead of lstat
CID 1393878
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r-- | tests/client/torture_sftp_fsync.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/client/torture_sftp_fsync.c b/tests/client/torture_sftp_fsync.c index 677bb90d..3e61b0b7 100644 --- a/tests/client/torture_sftp_fsync.c +++ b/tests/client/torture_sftp_fsync.c @@ -98,7 +98,7 @@ static void torture_sftp_fsync(void **state) { fp = fopen(libssh_tmp_file, "r"); assert_non_null(fp); - rc = lstat(libssh_tmp_file, &sb); + rc = fstat(fileno(fp), &sb); assert_return_code(rc, errno); bytesread = fread(buf_verify, sizeof(buf_verify), 1, fp); |