From ea3b34c516777839301ae91933aac1c61e8d50e8 Mon Sep 17 00:00:00 2001 From: braga Date: Wed, 12 Apr 2006 18:50:58 +0000 Subject: [PATCH] Make root dir have at least one link. Otherwise samba did not see it correctly. --- ftpfs-ls.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ftpfs-ls.c b/ftpfs-ls.c index f08c0a2..dc0e8f3 100644 --- a/ftpfs-ls.c +++ b/ftpfs-ls.c @@ -164,6 +164,7 @@ int parse_dir(const char* list, const char* dir, sbuf->st_mode |= S_IFDIR; sbuf->st_mode |= 0755; sbuf->st_size = 1024; + sbuf->st_nlink = 1; return 0; }