mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Mark directories as directories, not as regular files.
This commit is contained in:
parent
b37ba10824
commit
e57416dc56
2 changed files with 2 additions and 2 deletions
|
|
@ -902,7 +902,7 @@ linprocfs_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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -902,7 +902,7 @@ linprocfs_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