X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=finddup.c;h=7a20257d7b48d7baaddfbc7e3df6237a9151fc9a;hb=557365f6f9347243c49f06b4cfa947a259af2548;hp=cfef6be5c005a2f4203185c2b7cfe31e710ebdab;hpb=8f5d2ea79d687c9353e4ab803a8069c22275f1db;p=finddup.git diff --git a/finddup.c b/finddup.c index cfef6be..7a20257 100644 --- a/finddup.c +++ b/finddup.c @@ -23,7 +23,7 @@ * */ -#define VERSION_NUMBER "0.5" +#define VERSION_NUMBER "0.6" #define _BSD_SOURCE @@ -58,7 +58,7 @@ int show_progress = 1; /* 1 means show a progress bar when we are in a int show_hits = 1; /* 1 means to show the files from dir2 corresponding to the ones from dir1 */ -int show_groups = 0; /* 1 means to show the group IDs when printing +int show_groups = 1; /* 1 means to show the group IDs when printing file names */ /********************************************************************/ @@ -169,14 +169,14 @@ int same_content(struct file_with_size *f1, struct file_with_size *f2) { if(fd1 < 0) { fprintf(stderr, - "Can not open `%s' error: %s\n", + "Can not open \"%s\" error: %s\n", f1->filename, strerror(errno)); } if(fd2 < 0) { fprintf(stderr, - "Can not open `%s' error: %s\n", + "Can not open \"%s\" error: %s\n", f2->filename, strerror(errno)); } @@ -278,7 +278,7 @@ void start(const char *dirname1, const char *dirname2) { if(same_dir) { list2 = list1; } else { - fprintf(stderr, " %s ... ", dirname2); + fprintf(stderr, "%s ... ", dirname2); list2 = scan_directory(0, dirname2); } fprintf(stderr, "done.\n"); @@ -342,7 +342,7 @@ void print_help(FILE *out) { fprintf(out, " -h show this help\n"); fprintf(out, " -d ignore dot files and directories\n"); fprintf(out, " -c do not show which files in DIR2 corresponds to those in DIR1\n"); - fprintf(out, " -g show the file groups\n"); + fprintf(out, " -g do not show the file groups\n"); fprintf(out, " -r show the real file paths\n"); fprintf(out, "\n"); fprintf(out, "Report bugs and comments to \n"); @@ -380,7 +380,7 @@ int main(int argc, char **argv) { break; case 'g': - show_groups = 1; + show_groups = 0; break; case 'c':