You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Small bug, unlikely to have been triggered before: config_scan_pem_dir() scans pemdir and keeps only files using if (d[i]->d_type != DT_REG).
However, some filesystems do not support d_type, which is liable to be DT_UNKNOWN instead of the usual DT_DIR, DT_REG, DT_LNK, etc.
As stated in readdir(3):
Currently, only some filesystems (among them: Btrfs, ext2, ext3, and ext4) have full support for returning the file type in d_type. All applications must properly handle a return of DT_UNKNOWN.
If it encounters DT_UNKNOWN, Hitch should stat() or lstat() the file (depending on how you wish to handle symlinks) and test the st_mode field.
Hi,
we have a problem bound to this issue, i think, testing hitch on our server with root partition on Reiserfs.
Using pem-dir with some pem files on a Reiserfs partition trigger this error:
No x509 certificate PEM file specified for frontend '[(null)]:443'!
Hi,
Small bug, unlikely to have been triggered before:
config_scan_pem_dir()
scanspemdir
and keeps only files usingif (d[i]->d_type != DT_REG)
.However, some filesystems do not support d_type, which is liable to be DT_UNKNOWN instead of the usual DT_DIR, DT_REG, DT_LNK, etc.
As stated in
readdir(3)
:If it encounters DT_UNKNOWN, Hitch should stat() or lstat() the file (depending on how you wish to handle symlinks) and test the st_mode field.
If you need to set up a filesystem that does not support d_type to reproduce/fix the issue, I recommend using passthrough.py from python-fuse-sample.
The text was updated successfully, but these errors were encountered: