message: [secure] Store the temp path in the same location as storage
  In order to perform a rename operation, the two files must be located in
  the same file system. Hence, store them into the same path.
  Closes:
  Approved by: aching
diff: @@ -28,9 +28,15 @@ impl OnDiskStorage {
  File::create(&file_path).expect("Unable to create storage");
  }
  + // The parent will be one when only a filename is supplied. Therefore use the current
  + // working directory provided by PathBuf::new().
  + let file_dir = file_path
  + .parent()
  + .map_or(PathBuf::new(), |p| p.to_path_buf());
  +
  Self {
  file_path,
  - temp_path: TempPath::new(),
  + temp_path: TempPath::new_with_temp_dir(file_dir),
  }
  }
  