"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "plugins/resources/unixfilesystem/libunixfilesystem.cpp" between
irods-4.2.5.tar.gz and irods-4.2.6.tar.gz

About: iRODS (the integrated Rule Oriented Data System) is a distributed data-management system for creating data grids, digital libraries, persistent archives, and real-time data systems.

libunixfilesystem.cpp  (irods-4.2.5):libunixfilesystem.cpp  (irods-4.2.6)
skipping to change at line 1208 skipping to change at line 1208
new_path.erase( last_slash ); new_path.erase( last_slash );
ret = unix_file_mkdir_r( new_path.c_str(), mode ); ret = unix_file_mkdir_r( new_path.c_str(), mode );
if ( ( result = ASSERT_PASS( ret, "Mkdir error for \"%s\".", new_pat h.c_str() ) ).ok() ) { if ( ( result = ASSERT_PASS( ret, "Mkdir error for \"%s\".", new_pat h.c_str() ) ).ok() ) {
} }
// =-=-=-=-=-=-=- // =-=-=-=-=-=-=-
// make the call to rename // make the call to rename
int status = rename( fco->physical_path().c_str(), new_full_path.c_s tr() ); int status = rename( fco->physical_path().c_str(), new_full_path.c_s tr() );
// issue 4326 - plugins must set the physical path to the new path
fco->physical_path(new_full_path);
// =-=-=-=-=-=-=- // =-=-=-=-=-=-=-
// handle error cases // handle error cases
int err_status = UNIX_FILE_RENAME_ERR - errno; int err_status = UNIX_FILE_RENAME_ERR - errno;
if ( ( result = ASSERT_ERROR( status >= 0, err_status, "Rename error for \"%s\" to \"%s\", errno = \"%s\", status = %d.", if ( ( result = ASSERT_ERROR( status >= 0, err_status, "Rename error for \"%s\" to \"%s\", errno = \"%s\", status = %d.",
fco->physical_path().c_str(), new_full _path.c_str(), strerror( errno ), err_status ) ).ok() ) { fco->physical_path().c_str(), new_full _path.c_str(), strerror( errno ), err_status ) ).ok() ) {
result.code( status ); result.code( status );
} }
} }
} }
 End of changes. 1 change blocks. 
0 lines changed or deleted 3 lines changed or added

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