Doesn't create "~/.local/state/" if non-existent

オープン 初心者向け
#111 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
72/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
cpp
領域
cli

調査の方向性

問題は、CLI が ~/.local/state/ にディレクトリを作成せずに書き込んでいることです。XDG の state パスを解決し、そこでファイルを開く C++ のコードを見つけ、親ディレクトリがない場合に書き込みがどこで失敗するかを確認してください。state ディレクトリが存在しない場合はモード 0700 で作成され、既存のディレクトリは権限を維持し、作成に失敗した場合は分かりやすいエラーメッセージが出力されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Sendspin-cpp-cli doesn't create ~/.local/state/ if it doesn't exist already but I think it should do that according to the XDG Base Directory Specification.

If, when attempting to write a file, the destination directory is non-existent an attempt should be made to create it with permission 0700. If the destination directory exists already the permissions should not be changed. The application should be prepared to handle the case where the file could not be written, either because the directory was non-existent and could not be created, or for any other reason. In such case it may choose to present an error message to the user.

主要言語
C++
スター
14
フォーク
5
平均マージ
1日 12時間
マージ済み PR(30日)
26

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Sendspin/sendspin-cpp-cli のほかの issue

Sendspin/sendspin-cpp-cli の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。