Skip to content

zypper.CreateTarball() creates backup directory path elements with no permissions #232

@rtamalin

Description

@rtamalin

While implementing unit tests for PR #229 I noticed that when the CreateTarball() routine creates the var/adm/backup/system-upgrade directory path, in which it will store the backup tarball and restore script, it is specifying no permissions, so the resulting directory path can only be accessed with root privileges.

Given that this code will normally be run as root, this hasn't been a problem up to now, but causes problems for the unit testing.

Using a reasonable permission, e.g. 0o700, that permits at least user access seems like a better approach.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinghelp wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions