]> git.proxmox.com Git - proxmox-backup.git/commit
fix: #4761: unlink existing entries for hard/symlinks when overwrite
authorChristian Ebner <c.ebner@proxmox.com>
Wed, 16 Aug 2023 09:57:45 +0000 (11:57 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 17 Aug 2023 12:00:43 +0000 (14:00 +0200)
commite22da2f40a07c08230718ab8004e66645ab7e719
tree07d646183ebba5caef2494e75e535c28aa995229
parent03a9f822b3e3d09993429dac87705bd6fdc0155d
fix: #4761: unlink existing entries for hard/symlinks when overwrite

Creating symlinks or hardlinks might fail if a directory entry with the
same name is already present on the filesystem during restore.

When the overwrite flag is given, on failure unlink the existing entry
(except directories) and retry hard/symlink creation.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
pbs-client/src/pxar/extract.rs