• Mike Kaganski's avatar
    tdf#119238: keep replaced file's identity when renaming docfile · c9343988
    Mike Kaganski yazdı
    Regression from 2157a353
    
      sfx2 store: try rename before copying
    
      Rename is cheaper then copying the content over manually, so try that
      first.
    
    On Windows, we need to keep the file's dentity, including metadata (e.g.,
    creation time, which is kept in FS). WinAPI has ReplaceFileW specifically
    for this, and it keeps ACLs of the original file, and otherwise makes the
    changed file not a separate entry, but updated old file from system's PoV.
    
    Eventually, we could try to restructure creating backup copies (e.g., for
    documents when configured so) to take advantage of this function being able
    to do that.
    
    Change-Id: I6001a2a3af5e10bc010f5ef129f4bb6f83ee1581
    Reviewed-on: https://gerrit.libreoffice.org/60163Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
    Tested-by: Jenkins
    c9343988
Adı
Son kayıt (commit)
Son güncelleme
..
detail Loading commit data...
test Loading commit data...
conditn.h Loading commit data...
conditn.hxx Loading commit data...
diagnose.h Loading commit data...
diagnose.hxx Loading commit data...
doublecheckedlocking.h Loading commit data...
endian.h Loading commit data...
file.h Loading commit data...
file.hxx Loading commit data...
getglobalmutex.hxx Loading commit data...
interlck.h Loading commit data...
module.h Loading commit data...
module.hxx Loading commit data...
mutex.h Loading commit data...
mutex.hxx Loading commit data...
nlsupport.h Loading commit data...
pipe.h Loading commit data...
pipe.hxx Loading commit data...
pipe_decl.hxx Loading commit data...
process.h Loading commit data...
profile.h Loading commit data...
profile.hxx Loading commit data...
security.h Loading commit data...
security.hxx Loading commit data...
security_decl.hxx Loading commit data...
signal.h Loading commit data...
socket.h Loading commit data...
socket.hxx Loading commit data...
socket_decl.hxx Loading commit data...
thread.h Loading commit data...
thread.hxx Loading commit data...
time.h Loading commit data...