"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/libdar/etage.cpp" between
dar-2.6.1.tar.gz and dar-2.6.2.tar.gz

About: DAR (Disk ARchive) is a shell command that makes backup of a directory tree and files.

etage.cpp  (dar-2.6.1):etage.cpp  (dar-2.6.2)
skipping to change at line 237 skipping to change at line 237
static bool cache_directory_tagging_check(const char *cpath, const char *fil ename) static bool cache_directory_tagging_check(const char *cpath, const char *fil ename)
{ {
bool ret = false; bool ret = false;
if(strcmp(CACHE_DIR_TAG_FILENAME, filename) != 0) if(strcmp(CACHE_DIR_TAG_FILENAME, filename) != 0)
ret = false; ret = false;
else // we need to inspect the few first bytes of the file else // we need to inspect the few first bytes of the file
{ {
try try
{ {
path chem = path(cpath)+string(filename); path chem = path(cpath).append(filename);
fichier_local fic = fichier_local(chem.display(), false); fichier_local fic = fichier_local(chem.display(), false);
U_I len = strlen(CACHE_DIR_TAG_FILENAME_CONTENTS); U_I len = strlen(CACHE_DIR_TAG_FILENAME_CONTENTS);
char *buffer = new (nothrow) char[len+1]; char *buffer = new (nothrow) char[len+1];
S_I lu; S_I lu;
if(buffer == nullptr) if(buffer == nullptr)
throw Ememory("etage:cache_directory_tagging_check"); throw Ememory("etage:cache_directory_tagging_check");
try try
{ {
lu = fic.read(buffer, len); lu = fic.read(buffer, len);
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

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