tdf#119050 sfx2 store: don't inherit temp file permissions when overwriting
authorMiklos Vajna <vmiklos@collabora.co.uk>
Tue, 28 Aug 2018 07:05:06 +0000 (09:05 +0200)
committerRene Engelhard <rene@debian.org>
Fri, 31 Aug 2018 10:45:39 +0000 (11:45 +0100)
commitf37c4d35d7b4a9087b9c60acc7489d3d44cb8f41
treec52377bee83ecddc7e53dc95103e87d97de8cde8
parent41a9451ae61f49266f345e4fbdf98a3896d2983c
tdf#119050 sfx2 store: don't inherit temp file permissions when overwriting

The too aggressive error handling in commit
fb04780cf8523ad4e900ae8b9cecbe7a2697a12a (tdf#116117 sfx2 store: don't
inherit temp file permissions when renaming, 2018-03-12) means that if
the file is already there, then we don't try to stat() it; even if there
is no problem with that.

(cherry picked from commit 38afe2976eea427999c39ee3a73e7938ec8d5f7b)

Change-Id: Ie0b9084064834e339bcae3ad7b4a35c54cb9d3c2
Reviewed-on: https://gerrit.libreoffice.org/59709
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Gbp-Pq: Name do-not-reset-permissions-on-save.diff
sfx2/qa/cppunit/test_misc.cxx
sfx2/source/doc/docfile.cxx