/[dtapublic]/projs/trunk/projs/20161007_dedup/qdedup.c
ViewVC logotype

Diff of /projs/trunk/projs/20161007_dedup/qdedup.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 74 by dashley, Sat Nov 5 16:51:05 2016 UTC revision 75 by dashley, Sat Nov 5 18:40:38 2016 UTC
# Line 395  void get_sha512file_line(FILE *s, int *r Line 395  void get_sha512file_line(FILE *s, int *r
395     {     {
396        fatal("129th hash line character must be \" \".", __FILE__, __LINE__);        fatal("129th hash line character must be \" \".", __FILE__, __LINE__);
397     }     }
398     else if (buf[129] != '*')  //   else if (buf[129] != '*')
399    //   {
400    //      fatal("130th hash line character must be \"*\".", __FILE__, __LINE__);
401    //   }  
402       else if (buf[129] != ' ')
403     {     {
404        fatal("130th hash line character must be \"*\".", __FILE__, __LINE__);        //130th character is ' '.  Need to figure out why sometimes space and sometimes '*'.
405          fatal("130th hash line character must be \" \".", __FILE__, __LINE__);
406     }     }
407    
408     //There must be a 131'st character.  Beyond that, we can't qualify, because filenames may     //There must be a 131'st character.  Beyond that, we can't qualify, because filenames may
# Line 798  int main(int argc, char* argv[]) Line 803  int main(int argc, char* argv[])
803     {     {
804        option_filterdups(argv[2]);        option_filterdups(argv[2]);
805     }     }
806     else if ((argc == 3) && (strcmp(argv[1], "dedupnopath") == 0))     else if ((argc == 3) && (strcmp(argv[1], "dedup_nopath") == 0))
807     {     {
808        //option_filterdups(argv[2]);        //option_filterdups(argv[2]);
809     }     }
810     else if ((argc == 3) && (strcmp(argv[1], "dryrunnopath") == 0))     else if ((argc == 3) && (strcmp(argv[1], "dryrun_nopath") == 0))
811     {     {
812        //option_filterdups(argv[2]);        //option_filterdups(argv[2]);
813     }     }
814     else if ((argc == 4) && (strcmp(argv[1], "dedup") == 0))     else if ((argc == 4) && (strcmp(argv[1], "dedup_preserve_inside") == 0))
815     {     {
816        option_dedup(argv[2], argv[3], 1, UNLINKPAUSETIME);        option_dedup(argv[2], argv[3], 1, UNLINKPAUSETIME);
817     }     }
818     else if ((argc == 4) && (strcmp(argv[1], "dryrun") == 0))     else if ((argc == 4) && (strcmp(argv[1], "dryrun_preserve_inside") == 0))
819     {     {
820        option_dedup(argv[2], argv[3], 0, UNLINKPAUSETIME/10.0);        option_dedup(argv[2], argv[3], 0, UNLINKPAUSETIME/10.0);
821     }     }

Legend:
Removed from v.74  
changed lines
  Added in v.75

dashley@gmail.com
ViewVC Help
Powered by ViewVC 1.1.25