aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/numutils.c
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2020-02-01 18:30:25 +0900
committerMichael Paquier <michael@paquier.xyz>2020-02-01 18:30:25 +0900
commit7bae0ad9fcb76b28410571dc71edfdc3175c4a02 (patch)
treebdfaa8f08fb37a788dd79abb90c69ff06a846de1 /src/backend/utils/adt/numutils.c
parent93745f1e019543fe7b742d0c5e971aad8d08fd56 (diff)
downloadpostgresql-7bae0ad9fcb76b28410571dc71edfdc3175c4a02.tar.gz
postgresql-7bae0ad9fcb76b28410571dc71edfdc3175c4a02.zip
Prevent running pg_basebackup as root
Similarly to pg_upgrade, pg_ctl and initdb, a root user is able to use --version and --help, but cannot execute the actual operation to avoid the creation of files with permissions incompatible with the postmaster. This is a behavior change, so not back-patching is done. Author: Ian Barwick Discussion: https://postgr.es/m/CABvVfJVqOdD2neLkYdygdOHvbWz_5K_iWiqY+psMfA=FeAa3qQ@mail.gmail.com
Diffstat (limited to 'src/backend/utils/adt/numutils.c')
0 files changed, 0 insertions, 0 deletions