Skip to content

Commit

Permalink
main: fix the message of owner errors of cache directories
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Dec 18, 2021
1 parent 144ea5d commit b547a41
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ble.pp
Expand Up @@ -815,10 +815,10 @@ function ble/base/.create-user-directory {
return 1
fi
elif ! [[ -r $dir && -w $dir && -x $dir ]]; then
ble/util/print "ble.sh: permission of '$tmpdir' is not correct." >&2
ble/util/print "ble.sh: permission of '$dir' is not correct." >&2
return 1
elif [[ ! -O $dir ]]; then
ble/util/print "ble.sh: owner of '$tmpdir' is not correct." >&2
ble/util/print "ble.sh: owner of '$dir' is not correct." >&2
return 1
fi
builtin eval "$var=\$dir"
Expand Down
23 changes: 23 additions & 0 deletions note.txt
Expand Up @@ -5668,6 +5668,29 @@ bash_tips

2021-12-18

* main: root ユーザーで入ると the owner of '' is not correct と表示される [#D1712]
https://github.com/akinomyoga/ble.sh/issues/163

_ble_base_run か _ble_base_cache のどちらかの初期化の途中で、ディレクトリ所
有権の問題が起こっている。それからエラーメッセージにも問題がある。うーん。

* 再現の試み

取り敢えず手元で再現できないかどうかは試してからより詳細を求める事にする。

うーん。root と user の両方にインストールしたとしているがどのように入れた
のだろうか。取り敢えず root の home ディレクトリをチェックするべきなのだ
ろうか。うーん。色々やってみたが特に問題は生じていない様だ。

或いはインストールの方法に問題があるのかもしれない。ユーザーから root の
.local/share/blesh にインストールした等。と思ったが、これだとインストール
できない筈である。一方で、root からユーザーのディレクトリにインストールし
た可能性? 然しそれだと root user に switch した時にエラーメッセージが出る
という現象にはならない。

分からないので取り敢えずエラーメッセージを修正して何が表示されるか問い合わ
せる事にする。

* complete: FIGNORE で全てが棄却されるバグ (reported by seanfarley) [#D1711]
https://github.com/akinomyoga/ble.sh/issues/162

Expand Down

0 comments on commit b547a41

Please sign in to comment.