Skip to content

Commit

Permalink
comment out windows code that may be causing infinite loop
Browse files Browse the repository at this point in the history
  • Loading branch information
droundy committed Jun 26, 2016
1 parent fdbe2a4 commit eb102c2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions bigbro-windows.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,17 +144,19 @@ int bigbro(const char *workingdir, pid_t *child_ptr,
char *newk = malloc(strlen(e->key) - fromslashlen + toslashlen + 1);
strcpy(newk, toslash);
strcat(newk, e->key + fromslashlen);
insert_hashset(&written, newk);
delete_from_hashset(&written, e->key);
printf("need to rename %s to %s\n", e->key, newk);
/* insert_hashset(&written, newk); */
/* delete_from_hashset(&written, e->key); */
}
}
for (struct hash_entry *e = read.first; e; e = e->next) {
if (strncmp(e->key, fromslash, fromslashlen) == 0) {
char *newk = malloc(strlen(e->key) - fromslashlen + toslashlen + 1);
strcpy(newk, toslash);
strcat(newk, e->key + fromslashlen);
insert_hashset(&written, newk);
delete_from_hashset(&read, e->key);
printf("need to rename %s to %s\n", e->key, newk);
/* insert_hashset(&written, newk); */
/* delete_from_hashset(&read, e->key); */
}
}
for (struct hash_entry *e = readdir.first; e; e = e->next) {
Expand Down

0 comments on commit eb102c2

Please sign in to comment.