32adf030a4
without search permission. This confused some ftp clients. We fix this problem by maitaining a cached path when getcwd() does not work. The symbolic links and ../ are resolved in the cached path, and it is finnally checked for accuracy by comparing ./ and the cached path with stat (device and inode comparison). If the comparison fails, pwd fails as it did before, and if the comparison succeeds, the cached path is displayed. If paths are too long, we should just compare ./ with a truncated path and fail, thus making pwd displaying an error as it did before. |
||
---|---|---|
.. | ||
cmds.c | ||
conf.c | ||
extern.h | ||
ftpcmd.y | ||
ftpd.8 | ||
ftpd.c | ||
ftpd.conf.5 | ||
ftpusers.5 | ||
logutmp.c | ||
logwtmp.c | ||
Makefile | ||
pathnames.h | ||
popen.c | ||
version.h |