diff options
author | Anthony Liguori | 2010-10-26 16:51:03 +0200 |
---|---|---|
committer | Anthony Liguori | 2010-10-26 16:51:03 +0200 |
commit | 174b2877b0f6a607f994f7a5b9b9a36caaff5d75 (patch) | |
tree | 94b2f8a757b865a0ec0a3e43b8a223f095cf6869 /monitor.c | |
parent | Merge remote branch 'kwolf/for-anthony' into staging (diff) | |
parent | monitor: Ignore "." and ".." when completing file name. (diff) | |
download | qemu-174b2877b0f6a607f994f7a5b9b9a36caaff5d75.tar.gz qemu-174b2877b0f6a607f994f7a5b9b9a36caaff5d75.tar.xz qemu-174b2877b0f6a607f994f7a5b9b9a36caaff5d75.zip |
Merge remote branch 'qmp/for-anthony' into staging
Diffstat (limited to 'monitor.c')
-rw-r--r-- | monitor.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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)) |