mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
return correct type for process directory entries, DT_DIR not DT_REG
This commit is contained in:
parent
073113a478
commit
e5b7b6b78e
2 changed files with 2 additions and 2 deletions
|
|
@ -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 a new issue