diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-07-17 14:23:06 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-07-17 14:24:36 +0200 |
commit | e3a55c39b6dd7a866aa1033203a1813e646f8c50 (patch) | |
tree | 8ed4414769c88b371aef975fb55c4baf07287712 /tests | |
parent | 0184c3182f3bdc83fd4dc6f10ed3609cca32990c (diff) |
Fix stat/lstat type/ltype to be consistent, use correct *stat()
Diffstat (limited to 'tests')
-rw-r--r-- | tests/dir-iterator/driver.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/dir-iterator/driver.cxx b/tests/dir-iterator/driver.cxx index 09a259f..cc1e7d6 100644 --- a/tests/dir-iterator/driver.cxx +++ b/tests/dir-iterator/driver.cxx @@ -37,10 +37,10 @@ main (int argc, const char* argv[]) { for (const dir_entry& de: dir_iterator (dir_path (argv[1]))) { - cerr << de.type () << " "; + cerr << de.ltype () << " "; - if (de.type () == entry_type::symlink) - cerr << de.ltype (); + if (de.ltype () == entry_type::symlink) + cerr << de.type (); else cerr << " "; |