Bug 47838 - Некорректно обрабатывается переменная $PGMETHOD в /etc/init.d/postgresql
Summary: Некорректно обрабатывается переменная $PGMETHOD в /etc/init.d/postgresql
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: postgresql16 (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Alexei Takaseev
QA Contact: qa-sisyphus
URL:
Keywords:
: 47883 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-10-04 18:31 MSK by Artem Varaksa
Modified: 2023-10-10 08:15 MSK (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Artem Varaksa 2023-10-04 18:31:11 MSK
В следующем участке кода:

> if [ -z "PGMETHOD" ]
> then
>    PGMETHOD="scram-sha-256"
> fi

В условии должно быть $PGMETHOD, иначе при пустом параметре ожидаемой замены на scram-sha-256 не произойдёт.

Код находится в altlinux/postgresql.init.in в пакетах:

postgresql16 (sisyphus)
postgresql15 (sisyphus)
postgresql14 (sisyphus)
postgresql13 (sisyphus)
postgresql12 (sisyphus)
postgresql11 (sisyphus)

Для postgresql10 (есть только в p10) не актуально, т. к. там обрабатывается только $PGDATA.
Comment 1 Alexei Takaseev 2023-10-09 10:25:07 MSK
*** Bug 47883 has been marked as a duplicate of this bug. ***
Comment 2 Alexei Takaseev 2023-10-10 08:15:52 MSK
* Mon Oct  9 20:00:00 2023 Alexei Takaseev <taf@altlinux.org> 16.0-alt2
- Fix typo (Fixes ALT 47838)