commit 9c56b0a78a8194849c8d3b0f3e9727407b03dda0 from: Omar Polo date: Wed Oct 14 08:09:00 2020 UTC style commit - 10fed44c7988d70a4dc2f57e24ca92b3f72924b8 commit + 9c56b0a78a8194849c8d3b0f3e9727407b03dda0 blob - c140616a6a3b2db7158be6f0ca4a4fa31d141a41 blob + 741d9e7eb62711e0f234c8679bd35404494d7561 --- gmid.c +++ gmid.c @@ -357,7 +357,7 @@ send_dir(char *path, struct pollfd *fds, struct client bzero(fpath, PATHBUF); - if (*path != '.') + if (path[0] != '.') fpath[0] = '.'; /* this cannot fail since sizeof(fpath) > maxlen of path */ @@ -525,7 +525,6 @@ do_accept(int sock, struct tls *ctx, struct pollfd *fd } } - printf("too much clients. goodbye bro!\n"); close(fd); } @@ -597,7 +596,6 @@ loop(struct tls *ctx, int sock) } handle(&fds[i], &clients[i]); - } } }