"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "common/fs-mgr.c" between
seafile-8.0.2.tar.gz and seafile-8.0.3.tar.gz

About: Seafile (server) provides a cloud storage with file encryption and group sharing, and emphasis on reliability and high performance.

fs-mgr.c  (seafile-8.0.2):fs-mgr.c  (seafile-8.0.3)
skipping to change at line 392 skipping to change at line 392
suffix = email; suffix = email;
} }
conflict_path = gen_conflict_path (file_path, suffix, (gint64)time(NULL) ); conflict_path = gen_conflict_path (file_path, suffix, (gint64)time(NULL) );
if (seaf_util_exists (backup_path) && if (seaf_util_exists (backup_path) &&
seaf_util_rename (backup_path, conflict_path) < 0) { seaf_util_rename (backup_path, conflict_path) < 0) {
seaf_warning ("Failed to rename %s to %s: %s. " seaf_warning ("Failed to rename %s to %s: %s. "
"Failed to move backup file to conflict file.\n", "Failed to move backup file to conflict file.\n",
backup_path, conflict_path, strerror(errno)); backup_path, conflict_path, strerror(errno));
if (mtime > 0) {
/*
* Set the checked out file mtime to what it has to be.
*/
if (seaf_set_file_time (file_path, mtime) < 0) {
seaf_warning ("Failed to set mtime for %s.\n", file_path);
}
}
//Don't delete local file when failed to rename backup file to confl
ict file.
goto out;
} }
} }
if (mtime > 0) { if (mtime > 0) {
/* /*
* Set the checked out file mtime to what it has to be. * Set the checked out file mtime to what it has to be.
*/ */
if (seaf_set_file_time (file_path, mtime) < 0) { if (seaf_set_file_time (file_path, mtime) < 0) {
seaf_warning ("Failed to set mtime for %s.\n", file_path); seaf_warning ("Failed to set mtime for %s.\n", file_path);
} }
 End of changes. 1 change blocks. 
0 lines changed or deleted 11 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)