diff --git a/openvpn/common/persistoutfile.hpp b/openvpn/common/persistfile.hpp similarity index 94% rename from openvpn/common/persistoutfile.hpp rename to openvpn/common/persistfile.hpp index 127c9fa1..07cb1e20 100644 --- a/openvpn/common/persistoutfile.hpp +++ b/openvpn/common/persistfile.hpp @@ -19,8 +19,8 @@ // along with this program in the COPYING file. // If not, see . -#ifndef OPENVPN_COMMON_PERSISTOUTFILE_H -#define OPENVPN_COMMON_PERSISTOUTFILE_H +#ifndef OPENVPN_COMMON_PERSISTFILE_H +#define OPENVPN_COMMON_PERSISTFILE_H #include // for std::strerror() #include // for open(), lseek(), ftruncate() @@ -38,10 +38,10 @@ #include namespace openvpn { - class PersistentOutputFile + class PersistentFile { public: - PersistentOutputFile(const std::string& fn_arg) + PersistentFile(const std::string& fn_arg) : fn(fn_arg) { const int f = ::open(fn.c_str(), O_WRONLY|O_CREAT|O_CLOEXEC, S_IRUSR|S_IWUSR);