From 48122e8043c0d7393688346f7567dff89dcc772b Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Mon, 10 Feb 2014 14:09:13 +0100 Subject: sshfs-return-the-correct-x_ok-access sshfs-fuse always returned 0 in access(file, X_OK) calls, causing nautilus to prompt "Do you want to run "login.defs", or display its contents?" for text files that were not executable. Reported by: Alkis Georgopoulos --- cache.c | 1 + 1 file changed, 1 insertion(+) (limited to 'cache.c') diff --git a/cache.c b/cache.c index 2a06726..6e93157 100644 --- a/cache.c +++ b/cache.c @@ -490,6 +490,7 @@ static void cache_unity_fill(struct fuse_cache_operations *oper, cache_oper->init = oper->oper.init; #endif cache_oper->getattr = oper->oper.getattr; + cache_oper->access = oper->oper.access; cache_oper->readlink = oper->oper.readlink; cache_oper->getdir = cache_unity_getdir; cache_oper->mknod = oper->oper.mknod; -- cgit v1.2.3