1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-06 13:09:50 +00:00

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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=66701
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;
}