summaryrefslogtreecommitdiff
path: root/src/set.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/set.c')
-rw-r--r--src/set.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/set.c b/src/set.c
index 08db114..42e84ec 100644
--- a/src/set.c
+++ b/src/set.c
@@ -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++;
}