diff options
Diffstat (limited to 'src/set.c')
-rw-r--r-- | src/set.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -120,7 +120,8 @@ boolean set_validate(vtw_def *defp, char *valp, boolean empty_val) if (dirp != NULL) { while ((entry = readdir(dirp)) != NULL) { if (strcmp(entry->d_name,".") != 0 && - strcmp(entry->d_name,"..") != 0) { + strcmp(entry->d_name,"..") != 0 && + strcmp(val,entry->d_name) != 0) { strcpy(last_val,entry->d_name); file_count++; } |