[Bug]: install passes a leftover forcedl value instead of each server's force setting
メンテナーはふだん 1 日以内に返信
関連するプルリクエストがすでにマージされています。
- #5190 @borzaka による — マージ済み
評価
調査の方向性
Read lgsm/modules/install_server_files.sh around line 233 and check the force= assignments in its server branches. The issue identifies the mismatch: the fn_fetch_file call passes ${forcedl} instead of ${force}. Confirm the expected argument with the reported samp reproduction; done means the call passes the branch’s noforce setting.
索引モデルが issue の本文から書いたものです。
説明
Severity
severity: low
Reproducibility
reproducible: unable
Regression
regression: no
Affects latest release
latest-release: yes
User story
As a LinuxGSM maintainer, I want fn_install_server_files to pass the download setting each server defines, so that install does not depend on a value left over from an earlier download.
Script name
all servers installed by fn_install_server_files
Game
Other
Linux distro
Other
Command
command: install
Expected behavior
fn_fetch_file gets the force="noforce" value that each of the 27 server branches in fn_install_server_files sets.
Actual behavior
The call in lgsm/modules/install_server_files.sh line 233 passes ${forcedl}, which no branch sets, so it gets whatever the last fn_fetch_file call left in the global forcedl. Today that is always noforce: the module is loaded by fn_fetch_module just before, and the downloads in between (EULA, SteamCMD) also pass noforce. There is no visible effect today.
Further information
85290d6b ("corrected download settings", 2017-05-14) changed the argument in the call from ${force} to ${forcedl} but did not rename the force= assignments, and it has stayed that way since (the file later moved from lgsm/functions to lgsm/modules). The bug is latent: if a download that passes "forcedl" (for example install_config.sh or an update module) ever ran just before this function, install would download the archive again despite force="noforce". The fix is to pass ${force} in the call; force is not used anywhere else in lgsm/.
Pre-checks
- I ran update and validate before reporting this issue.
Not applicable: found by code review of develop, not on a live server.
Relevant log output
# fn_install_server_files with shortname=samp and forcedl="forcedl" left from an earlier call,
# fn_fetch_file stubbed to print its 9th argument
develop (b3d24bec): fn_fetch_file arg9 (forcedl) = forcedl
Steps to reproduce
- Source
fn_install_server_filesfromlgsm/modules/install_server_files.shwithfn_fetch_file,fn_dl_extractandfn_clear_tmpstubbed. - Set
shortname=sampandforcedl="forcedl", then callfn_install_server_files. fn_fetch_filereceivesforcedlinstead of the branch'snoforce.
🤖 Generated with Claude Code
- 主要言語
- Shell
- スター
- 4.9k
- フォーク
- 870
- 平均マージ
- 18時間 44分
- マージ済み PR(30日)
- 148
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
GameServerManagers/LinuxGSM のほかの issue
-
command: start distro: Debian engine: null game: Teamspeak 3 reproducible: always severity: low type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
GameServerManagers/LinuxGSM#5193 ·
メンテナーはふだん 1 日以内に返信
-
command: start engine: unreal4 game: The Front reproducible: always severity: medium type: bug
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
GameServerManagers/LinuxGSM#5185 ·
メンテナーはふだん 1 日以内に返信
-
bug(ins): server fails to start, srcds_run has CRLF line endings and needs bash対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンdistro: Ubuntu engine: source game: Insurgency status: fixed in develop
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
GameServerManagers/LinuxGSM#5153 ·
メンテナーはふだん 1 日以内に返信
-
[Bug]: cs2server ignores the GSLT entered during install対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンcommand: install command: start distro: Debian engine: source2 game: Counter-Strike 2 regression: yes reproducible: always severity: high type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
GameServerManagers/LinuxGSM#5106 ·
メンテナーはふだん 1 日以内に返信
-
[Bug]: A failed command exits with 0 when core_exit.sh is downloaded on exit対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンcommand: start distro: Debian engine: null game: Teamspeak 3 info: tmux reproducible: always severity: low status: fixed in develop type: bug
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
GameServerManagers/LinuxGSM#5191 ·
メンテナーはふだん 1 日以内に返信
GameServerManagers/LinuxGSM の issue をすべて見る
似ている issue
-
Isha Narulaオープン
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
dataplat/DataSpeakers#178 ·
-
[BUG] mo clean deletes Cypress test runner binaries in ~/Library/Caches/Cypress対応中かも @viniciusdsandrade が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
enhancement security severity:low
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
Battle-Cattle/BCUK-Bot-4#959 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
mattabate/life-distributable#153 ·
メンテナーはふだん 1 日以内に返信