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:
parent
073113a478
commit
e5b7b6b78e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=66701
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user