=========================================================== .___ __ __ _________________ __ __ __| _/|__|/ |_ / ___\_` __ \__ \ | | \/ __ | | \\_ __\ / /_/ > | \// __ \| | / /_/ | | || | \___ /|__| (____ /____/\____ | |__||__| /_____/ \/ \/ grep rough audit - static analysis tool v2.8 written by @Wireghoul =================================[justanotherhacker.com]=== postgresql-common-223/PgCommon.pm-153- closedir($dir); postgresql-common-223/PgCommon.pm:154: } elsif (/^\s*include(?:_if_exists)?\s*=?\s*'([^']+)'\s*(?:#.*)?$/i) { postgresql-common-223/PgCommon.pm-155- # read included file and merge into %conf ############################################## postgresql-common-223/PgCommon.pm-919- prepare_exec; postgresql-common-223/PgCommon.pm:920: my $groups = "$gid " . `/usr/bin/id -G $uname`; postgresql-common-223/PgCommon.pm-921- restore_exec; ############################################## postgresql-common-223/README.md-64- postgresql-common-223/README.md:65:* `$HOME/.postgresqlrc`: per-user preferences for default version/cluster and postgresql-common-223/README.md-66- database; overrides `/etc/postgresql-common/user_clusters` ############################################## postgresql-common-223/debhelper/Debian/Debhelper/Buildsystem/pgxs.pm-2-# postgresql-common-223/debhelper/Debian/Debhelper/Buildsystem/pgxs.pm:3:# Per PostgreSQL major version, a `build-$version` subdirectory is created. postgresql-common-223/debhelper/Debian/Debhelper/Buildsystem/pgxs.pm-4-# ############################################## postgresql-common-223/debian/changelog-81- support setting homepage, general template copy-editing. postgresql-common-223/debian/changelog:82: * Implement extension building as `dh $@ --with pgxs` and pgxs_loop, backed postgresql-common-223/debian/changelog-83- by `--buildsystem=pgxs` and pgxs_loop. We also run `make installcheck` at ############################################## postgresql-common-223/debian/init.d-functions-88-status() { postgresql-common-223/debian/init.d-functions:89: CLUSTERS=`pg_lsclusters -h | grep "^$1[[:space:]]"` postgresql-common-223/debian/init.d-functions-90- # no clusters -> unknown status ############################################## postgresql-common-223/debian/init.d-functions-104- postgresql-common-223/debian/init.d-functions:105: for v in `ls $dir 2>/dev/null`; do postgresql-common-223/debian/init.d-functions-106- #redhat# v=${v#*-} ############################################## postgresql-common-223/debian/maintscripts-functions-67- unset val postgresql-common-223/debian/maintscripts-functions:68: val=`pam_getenv -l $v` || true postgresql-common-223/debian/maintscripts-functions-69- [ -z "$val" ] || export $v="$val" ############################################## postgresql-common-223/debian/postgresql-common.config-28-SUPPORTED=`sh /usr/share/postgresql-common/supported-versions` postgresql-common-223/debian/postgresql-common.config:29:LATEST=`echo "$SUPPORTED" | sort -g | tail -1` postgresql-common-223/debian/postgresql-common.config-30- ############################################## postgresql-common-223/pg_buildext-53- local version=$1 postgresql-common-223/pg_buildext:54: vtarget=`echo $target | sed -e "s:%v:$version:g"` postgresql-common-223/pg_buildext-55- pgc="/usr/lib/postgresql/$version/bin/pg_config" ############################################## postgresql-common-223/pg_buildext-63- prepare_env $1 postgresql-common-223/pg_buildext:64: confopts=`echo $opt | sed -e "s:%v:$1:g"` postgresql-common-223/pg_buildext-65- ############################################## postgresql-common-223/pg_buildext-84- prepare_env $1 postgresql-common-223/pg_buildext:85: package=`echo $opt | sed -e "s:%v:$1:g"` postgresql-common-223/pg_buildext-86- ############################################## postgresql-common-223/pg_config-21-#redhat# PGBINROOT="/usr/pgsql-" postgresql-common-223/pg_config:22:LATEST_SERVER_DEV=`ls -v $PGBINROOT*/bin/pg_config 2>/dev/null|tail -n1` postgresql-common-223/pg_config-23- ############################################## postgresql-common-223/pg_createcluster-178-# postgresql-common-223/pg_createcluster:179:# Execution starts here postgresql-common-223/pg_createcluster-180-# ############################################## postgresql-common-223/pg_createcluster-352-error 'could not create configuration directory; you might ' . postgresql-common-223/pg_createcluster:353: 'need to run this program with root privileges' if system ('install', '-d', $confdir); postgresql-common-223/pg_createcluster-354- ############################################## postgresql-common-223/pg_createcluster-456-my $postgres = get_program_path('postgres', $version); postgresql-common-223/pg_createcluster:457:my $ldd = `ldd $postgres 2>/dev/null`; postgresql-common-223/pg_createcluster-458-$want_ssl = 0 if ($ldd and $ldd !~ /libssl/); ############################################## postgresql-common-223/pg_ctlcluster-88- select undef, undef, undef, 0.5; postgresql-common-223/pg_ctlcluster:89: $out = `LC_MESSAGES=C $psql -h '$sd' --port $p $nopwoption -Xc '' template1 2>&1 >/dev/null`; postgresql-common-223/pg_ctlcluster-90- ############################################## postgresql-common-223/pg_dropcluster-50- if ($info{'pgdata'} && -d $info{'pgdata'}) { postgresql-common-223/pg_dropcluster:51: if (system ('pg_ctlcluster', $version, $cluster, 'stop')) { postgresql-common-223/pg_dropcluster-52- error 'could not stop server, aborting'; ############################################## postgresql-common-223/pg_upgradecluster-226- my ($s) = $script =~ /(.*)/; # untaint postgresql-common-223/pg_upgradecluster:227: system ($s, @argv); postgresql-common-223/pg_upgradecluster-228- error "$s failed: $?" if ($?); ############################################## postgresql-common-223/pg_upgradecluster-233-# postgresql-common-223/pg_upgradecluster:234:# Execution starts here postgresql-common-223/pg_upgradecluster-235-# ############################################## postgresql-common-223/pg_upgradecluster-402-my $upgrade_scripts = (-d "$PgCommon::common_confdir/pg_upgradecluster.d" && postgresql-common-223/pg_upgradecluster:403: ($PgCommon::rpm ? `ls $PgCommon::common_confdir/pg_upgradecluster.d` : postgresql-common-223/pg_upgradecluster:404: `run-parts --test $PgCommon::common_confdir/pg_upgradecluster.d`)); postgresql-common-223/pg_upgradecluster-405- ############################################## postgresql-common-223/pg_upgradecluster-463- '-d', $maintenance_db, '-c', postgresql-common-223/pg_upgradecluster:464: "BEGIN READ WRITE; UPDATE pg_database SET datallowconn = 't' WHERE datname = '$db'; COMMIT") == 0 or postgresql-common-223/pg_upgradecluster-465- error 'Could not enable access to database'; ############################################## postgresql-common-223/pg_upgradecluster-551- '-d', $maintenance_db, '-c', postgresql-common-223/pg_upgradecluster:552: "BEGIN READ WRITE; UPDATE pg_database SET datallowconn = 'f' where datname = '$db'; COMMIT") == 0 or postgresql-common-223/pg_upgradecluster-553- error 'Could not disable access to database in old cluster'; ############################################## postgresql-common-223/pg_upgradecluster-555- '-d', $maintenance_db, '-c', postgresql-common-223/pg_upgradecluster:556: "BEGIN READ WRITE; UPDATE pg_database SET datallowconn = 'f' where datname = '$db'; COMMIT") == 0 or postgresql-common-223/pg_upgradecluster-557- error 'Could not disable access to database in new cluster'; ############################################## postgresql-common-223/run-upgrade-scripts-53- # temporarily enable connections postgresql-common-223/run-upgrade-scripts:54: my $conallow = `psql --cluster '$version/$cluster' template1 -AXtqc "select datallowconn from pg_database where datname='$db'"`; postgresql-common-223/run-upgrade-scripts-55- chomp $conallow; postgresql-common-223/run-upgrade-scripts-56- if ($conallow eq 'f') { postgresql-common-223/run-upgrade-scripts:57: system "psql --cluster '$version/$cluster' template1 -AXtqc \"update pg_database set datallowconn = 't' where datname='$db'\""; postgresql-common-223/run-upgrade-scripts-58- } postgresql-common-223/run-upgrade-scripts-59- postgresql-common-223/run-upgrade-scripts:60: my $out = `ON_ERROR_STOP=1 psql --cluster '$version/$cluster' -f '$script' '$db' 2>&1`; postgresql-common-223/run-upgrade-scripts-61- ############################################## postgresql-common-223/run-upgrade-scripts-63- if ($conallow eq 'f') { postgresql-common-223/run-upgrade-scripts:64: system "psql --cluster '$version/$cluster' template1 -AXtqc \"update pg_database set datallowconn = 'f' where datname='$db'\""; postgresql-common-223/run-upgrade-scripts-65- } ############################################## postgresql-common-223/run-upgrade-scripts-74- $cluster =~ s/'/\\'/g; # escape ' in cluster name postgresql-common-223/run-upgrade-scripts:75: my $out = `$script '$version' '$cluster' '$db' 2>&1`; postgresql-common-223/run-upgrade-scripts-76- print "[FAIL]\n$out" if $?; ############################################## postgresql-common-223/t/020_create_sql_remove.t-185- my $ssl = config_bool (PgCommon::get_conf_value $v, 'main', 'postgresql.conf', 'ssl'); postgresql-common-223/t/020_create_sql_remove.t:186: my $ssl_linked = `ldd $PgCommon::binroot$v/bin/postgres | grep libssl`; postgresql-common-223/t/020_create_sql_remove.t-187- my ($os, $osversion) = os_release(); ############################################## postgresql-common-223/t/020_create_sql_remove.t-338- postgresql-common-223/t/020_create_sql_remove.t:339: my $master_pid = `ps --user postgres hu | grep 'bin/postgres.*-D' | grep -v grep | awk '{print \$2}'`; postgresql-common-223/t/020_create_sql_remove.t-340- chomp $master_pid; ############################################## postgresql-common-223/t/020_create_sql_remove.t-344- usleep $delay; postgresql-common-223/t/020_create_sql_remove.t:345: $client_pid = `ps --user postgres hu | grep 'postgres.*: nobody nobodydb' | grep -v grep | awk '{print \$2}'`; postgresql-common-223/t/020_create_sql_remove.t-346- ($client_pid) = ($client_pid =~ /(\d+)/); # untaint ############################################## postgresql-common-223/t/022_recovery.t-24- my $c = 0; # fallback for when pg_isready is missing (PG < 9.3) postgresql-common-223/t/022_recovery.t:25: while (system ("pg_isready -q 2>&1") >> 8 == 1 and $c++ < 15) { postgresql-common-223/t/022_recovery.t-26- sleep(1); ############################################## postgresql-common-223/t/022_recovery.t-38- $c = 0; postgresql-common-223/t/022_recovery.t:39: while (system ("pg_isready -q 2>&1") >> 8 == 1 and $c++ < 15) { postgresql-common-223/t/022_recovery.t-40- sleep(1); ############################################## postgresql-common-223/t/025_logging.t-84-usleep $delay; postgresql-common-223/t/025_logging.t:85:if (system ("grep --binary-files=text -q 'test-logging-$$' /var/log/syslog 2> /dev/null") == 0) { postgresql-common-223/t/025_logging.t-86- note 'Logging to /var/log/syslog works'; ############################################## postgresql-common-223/t/032_ssl_key_permissions.t-20-foreach my $version (@MAJORS) { postgresql-common-223/t/032_ssl_key_permissions.t:21: my $pkgversion = `dpkg-query -f '\${Version}' -W postgresql-$version`; postgresql-common-223/t/032_ssl_key_permissions.t-22- note "$version ($pkgversion)"; ############################################## postgresql-common-223/t/060_obsolete_confparams.t-47-my $postgres = PgCommon::get_program_path('postgres', $MAJORS[0]); postgresql-common-223/t/060_obsolete_confparams.t:48:my $ldd = `ldd $postgres 2>/dev/null`; postgresql-common-223/t/060_obsolete_confparams.t-49-if ($ldd and $ldd !~ /libssl/) { ############################################## postgresql-common-223/t/100_upgrade_scripts.t-20-my $shellaction = '#!/bin/sh postgresql-common-223/t/100_upgrade_scripts.t:21:S=`basename $0` postgresql-common-223/t/100_upgrade_scripts.t-22-SQL="INSERT INTO log VALUES (\'$S $1 $2 $3\')" ############################################## postgresql-common-223/t/140_pg_config.t-43- skip 'build path not canonicalized on RedHat', 4 if ($PgCommon::rpm); postgresql-common-223/t/140_pg_config.t:44: my $pkgversion = `dpkg-query -f '\${Version}' -W postgresql-server-dev-$version`; postgresql-common-223/t/140_pg_config.t-45- # check that we correctly canonicalized the build paths ############################################## postgresql-common-223/t/140_pg_config.t-65- } else { # pg_config.libpq-dev should point at postgresql-server-dev-$(version of libpq-dev) postgresql-common-223/t/140_pg_config.t:66: my $libpqdev_version = `dpkg-query --showformat '\${Version}' --show libpq-dev`; postgresql-common-223/t/140_pg_config.t-67- $libpqdev_version =~ /^([89].\d|1.)/ or die "could not determine libpq-dev version"; ############################################## postgresql-common-223/t/140_pg_config.t-74- skip "$pgc not installed, can't check full $pg_config output", 2 unless (-x $pgc); postgresql-common-223/t/140_pg_config.t:75: my $full_output = `$pgc`; postgresql-common-223/t/140_pg_config.t-76- is_program_out 'postgres', "$pg_config", 0, $full_output; ############################################## postgresql-common-223/t/190_pg_buildext.t-46- SKIP: { postgresql-common-223/t/190_pg_buildext.t:47: my $have_extension_destdir = `grep extension_destdir /usr/share/postgresql/$ver/postgresql.conf.sample`; postgresql-common-223/t/190_pg_buildext.t-48- skip "No in-tree installcheck on PG $ver (missing extension_destdir)", 2 unless ($have_extension_destdir); ############################################## postgresql-common-223/t/TestLib.pm-85- if ($PgCommon::rpm) { postgresql-common-223/t/TestLib.pm:86: return `rpm --queryformat '%{VERSION}' -q $package`; postgresql-common-223/t/TestLib.pm-87- } else { postgresql-common-223/t/TestLib.pm:88: my $version = `dpkg-query -f '\${Version}' --show $package`; postgresql-common-223/t/TestLib.pm-89- chomp $version; ############################################## postgresql-common-223/t/TestLib.pm-110-sub ps { postgresql-common-223/t/TestLib.pm:111: return `ps h -o user,group,args -C $_[0] | grep '$_[0]' | sort -u`; postgresql-common-223/t/TestLib.pm-112-} ############################################## postgresql-common-223/t/TestLib.pm-181- die "changing euid: $!" if $> != $uid; postgresql-common-223/t/TestLib.pm:182: my $out = `$_[1] 2>&1`; postgresql-common-223/t/TestLib.pm-183- my $result = $? >> 8;