|
version 1.3.2.4, 2012/11/13 13:58:39
|
version 1.4.6.1, 2014/02/04 16:39:00
|
|
Line 12 terms:
|
Line 12 terms:
|
| All of the documentation and software included in the ELWIX and AITNET |
All of the documentation and software included in the ELWIX and AITNET |
| Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org> |
Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org> |
| |
|
| Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 | Copyright 2004 - 2014 |
| by Michael Pounov <misho@elwix.org>. All rights reserved. |
by Michael Pounov <misho@elwix.org>. All rights reserved. |
| |
|
| Redistribution and use in source and binary forms, with or without |
Redistribution and use in source and binary forms, with or without |
|
Line 324 sync_dircmpList(const char *csDir1, const char *csDir2
|
Line 324 sync_dircmpList(const char *csDir1, const char *csDir2
|
| |
|
| if (lstat(csDir2, &sb) == -1) { |
if (lstat(csDir2, &sb) == -1) { |
| LOGERR; |
LOGERR; |
| |
free(tags); |
| free(l); |
free(l); |
| return -1; |
return -1; |
| } |
} |
|
Line 333 sync_dircmpList(const char *csDir1, const char *csDir2
|
Line 334 sync_dircmpList(const char *csDir1, const char *csDir2
|
| LOGERR; |
LOGERR; |
| chdir(old); |
chdir(old); |
| free(old); |
free(old); |
| |
free(tags); |
| free(l); |
free(l); |
| return -1; |
return -1; |
| } |
} |
|
Line 341 sync_dircmpList(const char *csDir1, const char *csDir2
|
Line 343 sync_dircmpList(const char *csDir1, const char *csDir2
|
| LOGERR; |
LOGERR; |
| chdir(old); |
chdir(old); |
| free(old); |
free(old); |
| |
free(tags); |
| free(l); |
free(l); |
| return -1; |
return -1; |
| } |
} |
|
Line 361 sync_dircmpList(const char *csDir1, const char *csDir2
|
Line 364 sync_dircmpList(const char *csDir1, const char *csDir2
|
| chdir(old); |
chdir(old); |
| free(old); |
free(old); |
| closedir(dir); |
closedir(dir); |
| |
free(tags); |
| return -1; |
return -1; |
| } else |
} else |
| memset(&l[n + 1], 0, sizeof(struct tagDirName)); |
memset(&l[n + 1], 0, sizeof(struct tagDirName)); |
|
Line 432 sync_dircmpList(const char *csDir1, const char *csDir2
|
Line 436 sync_dircmpList(const char *csDir1, const char *csDir2
|
| f = fopen(csDir2, "r"); |
f = fopen(csDir2, "r"); |
| if (!f) { |
if (!f) { |
| LOGERR; |
LOGERR; |
| |
free(tags); |
| free(l); |
free(l); |
| return -1; |
return -1; |
| } |
} |
|
Line 460 sync_dircmpList(const char *csDir1, const char *csDir2
|
Line 465 sync_dircmpList(const char *csDir1, const char *csDir2
|
| LOGERR; |
LOGERR; |
| if (strcmp(csDir2, "-")) |
if (strcmp(csDir2, "-")) |
| fclose(f); |
fclose(f); |
| |
free(tags); |
| return -1; |
return -1; |
| } else |
} else |
| memset(&l[n + 1], 0, sizeof(struct tagDirName)); |
memset(&l[n + 1], 0, sizeof(struct tagDirName)); |
|
Line 487 sync_dircmpList(const char *csDir1, const char *csDir2
|
Line 493 sync_dircmpList(const char *csDir1, const char *csDir2
|
| } |
} |
| n -= cx; |
n -= cx; |
| |
|
| |
free(tags); |
| *list = l; |
*list = l; |
| return n; |
return n; |
| } |
} |