add a comment why st_ino is made random for usmb_readdir - susmb - fork from usmb 20130204: mount of SMB/CIFS shares via FUSE
 (HTM) git clone git://git.codemadness.org/susmb
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit df7aef62ee924ac8d8233e97fe85be8daa260516
 (DIR) parent 6ed5b157d8757d5e3692ee2bf910517e7622a6f1
 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       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/patch-usmb_dir_c?rev=1.3&content-type=text/x-cvsweb-markup
       
       Diffstat:
         M README                              |       1 -
         M susmb.c                             |       2 ++
       
       2 files changed, 2 insertions(+), 1 deletion(-)
       ---
 (DIR) 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.
 (DIR) diff --git a/susmb.c b/susmb.c
       @@ -755,6 +755,8 @@ usmb_readdir(const char *path, void *h, fuse_fill_dir_t filler,
        
                        while (NULL != (dirent = smbc_getFunctionReaddir(ctx_) (ctx_, file))) {
                                memset(&stbuf, 0, sizeof(stbuf));
       +                        /* required for at least OpenBSD for getcwd() to work properly
       +                           as described in the fuse_new(3) man page near readdir_ino */
                                stbuf.st_ino = arc4random();
        
                                switch (dirent->smbc_type)  {