X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fsupport%2Ffs_extras.cpp;h=de2f2725141f6eddcc65bf6755bad8e81a8eaf8f;hb=897436efbb9bd641b61467d185a2dfae9839e575;hp=2dc84339c05cfa9de0954a03b859e7bef4484bbc;hpb=0e64103f927443835005cda616db620f9b9e007b;p=features.git diff --git a/src/support/fs_extras.cpp b/src/support/fs_extras.cpp index 2dc84339c0..de2f272514 100644 --- a/src/support/fs_extras.cpp +++ b/src/support/fs_extras.cpp @@ -109,9 +109,9 @@ void copy_file(path const & source, path const & target, bool noclobber) int err = errno; ::close(infile); boost::throw_exception(filesystem_path_error( - "boost::filesystem::copy_file", - source, target, - fs::lookup_errno(err))); + "boost::filesystem::copy_file", + source, target, + fs::lookup_errno(err))); } int const flags = O_WRONLY | O_CREAT | (noclobber ? O_EXCL : O_TRUNC); @@ -148,8 +148,8 @@ void copy_file(path const & source, path const & target, bool noclobber) int err = errno; - ::close(infile); - ::close(outfile); + ::close(infile); + ::close(outfile); if (in == -1 || out == -1) boost::throw_exception( @@ -173,4 +173,3 @@ void copy_file(path const & source, path const & target, bool noclobber) } } -