[pkg-bacula-devel] Bug#953030: bacula-sd.postinst fails on systems with protected_regular=2 enabled

Carsten Leonhardt leo at debian.org
Tue Mar 3 17:35:21 GMT 2020


Sven Hartge <sven at svenhartge.de> writes:

> I wonder what happens when you use restore and path=/ to overwri a file
> during restore whose owner has been changed.
>
> Will this also fail? What operations does the FD do to accomplish the
> operation?

Looking at src/findlib/create_file.c starting at line 209:

/* Now we do the specific work for each file type */

The actual creation of the file is at line 224 by calling bopen, defined
in bfile.c.

I suppose to have the restore work out ok, the preexisting file would
need to be deleted or chown'ed. I don't see neither of these operations.

I guess it won't work, a test would tell for sure.



More information about the pkg-bacula-devel mailing list