Changeset 888 for branches/prototype-v0/zoo-project/zoo-kernel/sshapi.c
- Timestamp:
- Nov 16, 2018, 3:09:05 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/prototype-v0/zoo-project/zoo-kernel/sshapi.c
r886 r888 653 653 int fileMd5Check(maps** conf,const char* localPath,const char* targetPath){ 654 654 if(strstr(localPath,".zca")!=NULL){ 655 char *logPath=NULL; 656 char *command=(char*)malloc(( strlen(targetPath)+27)*sizeof(char));657 sprintf(command," md5sum %s | awk {'print $1'}",targetPath);655 char *logPath=NULL; 656 char *command=(char*)malloc(((2*strlen(targetPath))+42)*sizeof(char)); 657 sprintf(command,"(md5sum %s | awk {'print $1'}) && touch %s",targetPath,targetPath); 658 658 if(ssh_exec(*conf,command,ssh_get_cnt(*conf))<=0){ 659 659 return -1;
Note: See TracChangeset
for help on using the changeset viewer.