1
1

tests: Use fstat instead of lstat

CID 1393878

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Этот коммит содержится в:
Andreas Schneider 2018-08-06 09:38:59 +02:00
родитель f6fe7488e3
Коммит 5871d604cd

Просмотреть файл

@ -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);