| Submitter | Luiz Capitulino |
|---|---|
| Date | Oct. 22, 2010, 2:06 p.m. |
| Message ID | <1287756396-13100-5-git-send-email-lcapitulino@redhat.com> |
| Download | mbox | patch |
| Permalink | /patch/68863/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/monitor.c b/monitor.c index 260cc02..61607c5 100644 --- a/monitor.c +++ b/monitor.c @@ -3976,6 +3976,11 @@ static void file_completion(const char *input) d = readdir(ffs); if (!d) break; + + if (strcmp(d->d_name, ".") == 0 || strcmp(d->d_name, "..") == 0) { + continue; + } + if (strstart(d->d_name, file_prefix, NULL)) { memcpy(file, input, input_path_len); if (input_path_len < sizeof(file))