Skip to content

fix: 不要な書き込み権限を除去する #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ncaq
Copy link

@ncaq ncaq commented Nov 11, 2022

rではなくr+を使うと先頭から書き込みも行えるモードでファイルが開かれるが、
自分が見る限り書き込みをしている箇所が見つからない。
書き込み可能なようにすると以下のように読み込み専用ファイルシステムを使うとエラーになる。

"errorMessage": "[Errno 30] Read-only file system: '/asa-server/python_asa/asapy/load/../dict/new_argframes.json'",
"errorType": "OSError",

よって書き込みを行わない場合は読み込み専用で開いた方が適切だと考える。

`r`ではなく`r+`を使うと先頭から書き込みも行えるモードでファイルが開かれるが、
自分が見る限り書き込みをしている箇所が見つからない。
書き込み可能なようにすると以下のように読み込み専用ファイルシステムを使うとエラーになる。

~~~
"errorMessage": "[Errno 30] Read-only file system: '/asa-server/python_asa/asapy/load/../dict/new_argframes.json'",
"errorType": "OSError",
~~~

よって書き込みを行わない場合は読み込み専用で開いた方が適切だと考える。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant