Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys/miscfs/procfs



Module Name:    src
Committed By:   bouyer
Date:           Mon Jan 17 11:20:00 UTC 2022

Modified Files:
        src/sys/miscfs/procfs: procfs.h procfs_vfsops.c procfs_vnops.c

Log Message:
If the calling process is running under linux emulation, make /proc/xxx/fd/
return only symlinks pointing to the original file in the filesystem,
instead of a hard link. This matches the linux behavior, and some
linux programs relies on it (they unconditionally call readlink() on
/proc/xxx/fd/yy and don't deal with it returning EINVAL).
Proposed on tech-kern@ in
http://mail-index.netbsd.org/tech-kern/2022/01/11/msg027877.html


To generate a diff of this commit:
cvs rdiff -u -r1.80 -r1.81 src/sys/miscfs/procfs/procfs.h
cvs rdiff -u -r1.110 -r1.111 src/sys/miscfs/procfs/procfs_vfsops.c
cvs rdiff -u -r1.226 -r1.227 src/sys/miscfs/procfs/procfs_vnops.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index