Package: postgresql-common Version: 200 Severity: normal Dear maintainer,
When doing the upgrade of a set of postgresql clusters from 10 to 11, while in directory /srv/softwareheritage/postgres/11, I ended up typing: LC_ALL=C.UTF-8 pg_createcluster -d ./testdedup 11 testdedup Instead of the expected /srv/softwareheritage/postgres/11/testdedup data directory, this created a data directory /testdedup at the root of the filesystem. I'm guessing directory argument parsing/resolution should happen before the chdir '/', but my Perl is too rusty to prepare a cogent patch, sorry! Cheers, Nicolas -- System Information: Debian Release: buster/sid APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'unstable'), (500, 'testing'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 4.19.0-3-amd64 (SMP w/4 CPU cores) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages postgresql-common depends on: ii adduser 3.118 ii debconf [debconf-2.0] 1.5.71 ii lsb-base 10.2019031300 ii postgresql-client-common 200 ii procps 2:3.3.15-2 ii ssl-cert 1.0.39 ii ucf 3.0038+nmu1 Versions of packages postgresql-common recommends: ii e2fsprogs 1.45.0-1 ii logrotate 3.14.0-4 Versions of packages postgresql-common suggests: ii libjson-perl 4.02000-1 -- debconf information excluded

