diff options
author | Dominick Allen <djallen@librehumanitas.org> | 2024-10-28 23:49:50 -0500 |
---|---|---|
committer | Dominick Allen <djallen@librehumanitas.org> | 2024-10-28 23:49:50 -0500 |
commit | afc11065bb151349090d8ae89cb61d1c35bdddae (patch) | |
tree | 41a7133a6e143d6333594d899556831b5a914fc1 /include/fud_c_file.hpp | |
parent | c3cf6df863828798ed8230b0f0966bcf3b2d08dd (diff) |
Prepare for new SSO.
Diffstat (limited to 'include/fud_c_file.hpp')
-rw-r--r-- | include/fud_c_file.hpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/include/fud_c_file.hpp b/include/fud_c_file.hpp index 197abd3..bf148c2 100644 --- a/include/fud_c_file.hpp +++ b/include/fud_c_file.hpp @@ -97,9 +97,6 @@ class CFile { FudStatus open() { auto& self = static_cast<Derived&>(*this); - if (!self.m_filename.valid()) { - return FudStatus::ObjectInvalid; - } self.m_file = fopen(self.m_filename.c_str(), self.m_mode.c_str()); return self.m_file != nullptr ? FudStatus::Success : FudStatus::Failure; } @@ -111,10 +108,6 @@ class CFile { return FudStatus::OperationInvalid; } - if (!self.m_filename.valid()) { - return FudStatus::ObjectInvalid; - } - auto fdResult = ::open(self.m_filename.c_str(), O_CREAT, permissions.mode()); if (fdResult == -1) { return FudStatus::Failure; |