ZP-845 Improve Utils::FixFileOwner.
Released under the Affero GNU General Public License (AGPL) version 3.
If we are running as root (bad idea), parent directory is owned by root,
and the file is owned by root, it means that we can't FixFileOwner,
so remove the file and throw an exception instead of silently breaking zpush
Signed-off-by:
Etienne CHAMPETIER <champetier.etienne@gmail.com>
Showing
Please register or sign in to comment