Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fea34925 authored by Myles Watson's avatar Myles Watson Committed by android-build-merger
Browse files

OSI: Copy temporary directoryname

am: 35ebd6c2

Change-Id: I6c796f8b18ba8e146d478358428ec06d5f2f6bea
parents ffea84dd 35ebd6c2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -211,7 +211,7 @@ bool config_save(const config_t& config, const std::string& filename) {
  const std::string temp_filename = filename + ".new";

  // Extract directory from file path (e.g. /data/misc/bluedroid).
  const std::string& directoryname = base::FilePath(filename).DirName().value();
  const std::string directoryname = base::FilePath(filename).DirName().value();
  if (directoryname.empty()) {
    LOG(ERROR) << __func__ << ": error extracting directory from '" << filename
               << "': " << strerror(errno);