try {
MetaDataDedupFile mf = MetaFileStore.getMF(f);
mf.setMode(mode);
} catch (Exception e) {
SDFSLogger.getLog().warn("access denied for " + path, e);
<BUG>throw new FuseException("access denied for " + path)

.initErrno(Errno.EACCES);</BUG>
} finally {
}

try {
File f = resolvePath(path);
int ftype = this.getFtype(path);
if (ftype == FuseFtypeConstants.TYPE_SYMLINK || ftype == FuseFtypeConstants.TYPE_DIR) {
Path p = Paths.get(f.getPath());
try {
Files.setAttribute(p, "unix:mode", Integer.valueOf(mode), LinkOption.NOFOLLOW_LINKS);
} catch (IOException e) {
SDFSLogger.getLog().warn("access denied for " + path, e);
throw new FuseException("access denied for " + path).initErrno(Errno.EACCES);
} finally {
path = null;
