return correct type for process directory entries, DT_DIR not DT_REG

This commit is contained in:
Alfred Perlstein 2000-10-05 23:19:51 +00:00
parent 073113a478
commit e5b7b6b78e
2 changed files with 2 additions and 2 deletions

View file

@ -860,7 +860,7 @@ procfs_readdir(ap)
dp->d_fileno = PROCFS_FILENO(p->p_pid, Pproc);
dp->d_namlen = sprintf(dp->d_name, "%ld",
(long)p->p_pid);
dp->d_type = DT_REG;
dp->d_type = DT_DIR;
p = p->p_list.le_next;
break;
}

View file

@ -860,7 +860,7 @@ procfs_readdir(ap)
dp->d_fileno = PROCFS_FILENO(p->p_pid, Pproc);
dp->d_namlen = sprintf(dp->d_name, "%ld",
(long)p->p_pid);
dp->d_type = DT_REG;
dp->d_type = DT_DIR;
p = p->p_list.le_next;
break;
}