commit | c2c5c58593f7e4944fcf57d07e66baaf6a82b11d | [log] [tgz] |
---|---|---|
author | Matthias Andree <matthias.andree@gmx.de> | Fri Jul 22 01:20:10 2016 +0200 |
committer | Theodore Ts'o <tytso@mit.edu> | Sat Jul 23 12:40:17 2016 -0400 |
tree | 897260f2488c93b294107e97121905e1efdea565 | |
parent | 32448f50df7d974ded956bbc78a419cf65ec09a3 [diff] |
libext2fs: fix infinite loop if copying in an empty directory In m_minrootdir, on FreeBSD 9.3, try_lseek_copy() fails on an empty file because errcode is uninitialized and the while() loop never executes, and the errcode garbage is returned. Initialize errcode = 0 in try_lseek_copy() to avoid a "fail" result when there was nothing to copy. Signed-off-by: Matthias Andree <matthias.andree@gmx.de> Signed-off-by: Theodore Ts'o <tytso@mit.edu>