X-Git-Url: https://www.fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=finddup.c;h=2e4a93739bb96bc528d9a9cceb11e14ad61e02d2;hb=c540f85c7f4ea3bf6c26a87f679f9d2a42932652;hp=059861238a6366b037d89b29b35cb15712325c5b;hpb=f45101063a6e7d071725d424b5841f91fe219f59;p=finddup.git diff --git a/finddup.c b/finddup.c index 0598612..2e4a937 100644 --- a/finddup.c +++ b/finddup.c @@ -56,8 +56,8 @@ int ignore_dotfiles = 0; /* 1 means ignore files and directories int ignore_empty_files = 0; /* 1 means ignore empty files */ -int show_realpaths = 0; /* 1 means ignore files and directories - starting with a dot */ +int show_realpaths = 0; /* 1 show the canonical absolute pathname for + printed files */ int show_progress = 0; /* 1 means show a progress bar when we are in a tty */ @@ -333,11 +333,11 @@ int compare_nodes(const void *x1, const void *x2) { void exec_command(int nb, struct file_node **nodes) { char **args; - int max_group_size = 0, group_size, m, n, status; + int max_group_size = 0, group_size = 0, m, n, status; pid_t pid; for(n = 0; n < nb; n++) { - if(n == 0 || nodes[n]->group_id != nodes[n-1]->group_id) { + if(nodes[n]->group_id != nodes[n-1]->group_id) { group_size = 0; } group_size++;