Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(backup): Make argument "--backup-dir" symlink aware #52

Merged
merged 1 commit into from
Feb 20, 2022

Conversation

wombelix
Copy link
Contributor

@wombelix wombelix commented Sep 22, 2021

As discussed in #51, if the path in argument --backup-dir is a symlink, smdba will not follow the symlink and fail during the Permission Check, because the symlink always has 777 and differ from /var/lib/pgsql/data

This PR address this issues by following the symlink so that during Owner and Permission check the target path will be used.

Fixes #51

Copy link
Member

@mcalmer mcalmer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we will give it a try

@mcalmer mcalmer merged commit 273c5e4 into SUSE:master Feb 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make argument "--backup-dir" symlink aware
2 participants