Package: postgresql-client-common
Version: 80
Severity: normal

In my system /usr/sbin/pg_maintenance fails with the message 
Error: Invalid data directory

On investigation, it turns out because PgCommon::get_version_clusters
thinks /etc/postgresql is a cluster because it contains a leftover
postgresql.conf file from an ancient package.

$ perl -e "use lib '/usr/share/postgresql-common'; use PgCommon; 
@q=(get_version_clusters 8.1); print \"@q\""

.. main

I think get_version_clusters should filter out . and .. from the
readdir call it makes on /etc/postgresql/$version

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing'), (400, 'unstable'), (50, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-1-k7 (SMP w/1 CPU core)
Locale: LANG=es_MX.UTF-8, LC_CTYPE=es_MX.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages postgresql-client-common depends on:
ii  debconf [debconf-2.0]         1.5.14     Debian configuration management sy

postgresql-client-common recommends no packages.

-- no debconf information

Attachment: signature.asc
Description: Digital signature

Reply via email to