Age | Commit message (Collapse) | Author |
|
It turned out it is the wrong approach.
This reverts commit b6768b326c2e80f5c2326ab46459644d417c6e98.
|
|
Advertize the possibility to handle symlinks depending on
DISKFS_SHORTCUT_SYMLINK.
* libdiskfs/io-pathconf.c (diskfs_S_io_pathconf): Handle
_PC_2_SYMLINKS too.
|
|
Explicitly return -1 also for _PC_PATH_MAX to indicate there is no
limit for it, otherwise EINVAL is returned for it.
* libdiskfs/io-pathconf.c (diskfs_S_io_pathconf): Handle _PC_PATH_MAX
too.
|
|
* io-pathconf.c (diskfs_S_io_pathconf): Cap diskfs_name_max to size
representable in struct dirent.d_namlen.
(diskfs_S_io_pathconf): Always return 1 for _PC_NO_TRUNC, since we
always constrain diskfs_name_max.
|
|
* lookup.c (diskfs_lookup): Enforce diskfs_name_max limit for CREATE
and RENAME, returning ENAMETOOLONG for violations.
* io-pathconf.c (diskfs_S_io_pathconf): _PC_NO_TRUNC controlled by
diskfs_name_max setting.
|
|
* diskfs.h (diskfs_name_max): Declare new variable.
* io-pathconf.c (diskfs_S_io_pathconf): Use it for _PC_NAME_MAX,
capping it to 1024.
|
|
* io-pathconf.c: Include <unistd.h>.
(diskfs_S_io_pathconf): Provide real definition.
|
|
|
|
|
|
|
|
|
|
|