QFile::rename fallback: reset permissions and error state on success
commit3580f5b4d002cca714d443054f8cdd6aefca3287
authorJoão Abecasis <joao@abecasis.name>
Wed, 15 Apr 2009 12:30:47 +0000 (15 14:30 +0200)
committerJoão Abecasis <joao@abecasis.name>
Fri, 22 May 2009 12:33:40 +0000 (22 14:33 +0200)
treedacfe1af20d4cd90c141300dce8f147616068ffe
parentfd7cb7faa765835de6e7beb24f018c417d9ad7d8
QFile::rename fallback: reset permissions and error state on success

Fallback implementation for rename operation should try to copy
permissions from the original file to the destination file. Note that
failures at this point are not treated as errors.

Errors previously set by the native fileEngine are also reset before
returning.

Reviewed-by: Peter Hartmann
Reviewed-by: Thiago
src/corelib/io/qfile.cpp