add a comment why st_ino is made random for usmb_readdir - susmb - fork from us… | |
git clone git://git.codemadness.org/susmb | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit df7aef62ee924ac8d8233e97fe85be8daa260516 | |
parent 6ed5b157d8757d5e3692ee2bf910517e7622a6f1 | |
Author: Hiltjo Posthuma <[email protected]> | |
Date: Thu, 6 Mar 2025 19:31:47 +0100 | |
add a comment why st_ino is made random for usmb_readdir | |
This was patched in the OpenBSD usmb port, but had no comment in the patch | |
patch-usmb_dir_c: | |
http://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/sysutils/usmb/patches/pa… | |
Diffstat: | |
M README | 1 - | |
M susmb.c | 2 ++ | |
2 files changed, 2 insertions(+), 1 deletion(-) | |
--- | |
diff --git a/README b/README | |
@@ -118,7 +118,6 @@ Cleanups: | |
- Use getopt for option parsing: remove dependences on glib which was used for | |
option parsing only. | |
Remove long option support. | |
- | |
- Remove libxml2 dependency and configuration via XML. Configuration is now | |
done via a simpler syntax as a URI from the command-line. This was also | |
listed in the man page under the BUGS section as a wanted feature. | |
diff --git a/susmb.c b/susmb.c | |
@@ -755,6 +755,8 @@ usmb_readdir(const char *path, void *h, fuse_fill_dir_t fil… | |
while (NULL != (dirent = smbc_getFunctionReaddir(ctx_) (ctx_, … | |
memset(&stbuf, 0, sizeof(stbuf)); | |
+ /* required for at least OpenBSD for getcwd() to work … | |
+ as described in the fuse_new(3) man page near readd… | |
stbuf.st_ino = arc4random(); | |
switch (dirent->smbc_type) { |