mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
Add pg_upgrade check to make sure the user has full access permission in
the current directory; if not, throw an error.
This commit is contained in:
@ -93,6 +93,11 @@ is_server_running(const char *datadir)
|
||||
void
|
||||
verify_directories(void)
|
||||
{
|
||||
|
||||
if (access(".", R_OK | W_OK | X_OK) != 0)
|
||||
pg_log(PG_FATAL,
|
||||
"You must have full access permissions in the current directory.\n");
|
||||
|
||||
prep_status("Checking old data directory (%s)", old_cluster.pgdata);
|
||||
check_data_dir(old_cluster.pgdata);
|
||||
check_ok();
|
||||
|
Reference in New Issue
Block a user