mirror of
https://github.com/Maschell/fuse-wiiu.git
synced 2024-11-25 15:56:53 +01:00
Directories need the execution bit on OSX
This commit is contained in:
parent
606d4485c8
commit
1f1a4fe1a9
@ -56,7 +56,7 @@ public class FSTDataProviderContainer implements FuseContainer {
|
|||||||
@Override
|
@Override
|
||||||
public int getattr(String path, FileStat stat) {
|
public int getattr(String path, FileStat stat) {
|
||||||
if (path.equals("/")) {
|
if (path.equals("/")) {
|
||||||
stat.st_mode.set(FileStat.S_IFDIR | FileStat.ALL_READ);
|
stat.st_mode.set(FileStat.S_IFDIR | 0755);
|
||||||
stat.st_nlink.set(2);
|
stat.st_nlink.set(2);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -66,7 +66,7 @@ public class FSTDataProviderContainer implements FuseContainer {
|
|||||||
if (entryOpt.isPresent()) {
|
if (entryOpt.isPresent()) {
|
||||||
FSTEntry entry = entryOpt.get();
|
FSTEntry entry = entryOpt.get();
|
||||||
if (entry.isDir()) {
|
if (entry.isDir()) {
|
||||||
stat.st_mode.set(FileStat.S_IFDIR | FileStat.ALL_READ);
|
stat.st_mode.set(FileStat.S_IFDIR | 0755);
|
||||||
stat.st_nlink.set(2);
|
stat.st_nlink.set(2);
|
||||||
} else {
|
} else {
|
||||||
stat.st_mode.set(FileStat.S_IFREG | FileStat.ALL_READ);
|
stat.st_mode.set(FileStat.S_IFREG | FileStat.ALL_READ);
|
||||||
|
@ -87,14 +87,14 @@ public abstract class GroupFuseContainer implements FuseContainer {
|
|||||||
public int getattr(String path, FileStat stat) {
|
public int getattr(String path, FileStat stat) {
|
||||||
path.replace("\\", "/");
|
path.replace("\\", "/");
|
||||||
if (path.equals("/")) {
|
if (path.equals("/")) {
|
||||||
stat.st_mode.set(FileStat.S_IFDIR | FileStat.ALL_READ);
|
stat.st_mode.set(FileStat.S_IFDIR | 0755);
|
||||||
stat.st_nlink.set(2);
|
stat.st_nlink.set(2);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
if (path.split("/").length == 2) {
|
if (path.split("/").length == 2) {
|
||||||
for (String container : containerMap.keySet()) {
|
for (String container : containerMap.keySet()) {
|
||||||
if (container.equals(path.split("/")[1])) {
|
if (container.equals(path.split("/")[1])) {
|
||||||
stat.st_mode.set(FileStat.S_IFDIR | FileStat.ALL_READ);
|
stat.st_mode.set(FileStat.S_IFDIR | 0755);
|
||||||
stat.st_nlink.set(2);
|
stat.st_nlink.set(2);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -113,7 +113,7 @@ public class NUSTitleEncryptedFuseContainer implements FuseContainer {
|
|||||||
@Override
|
@Override
|
||||||
public int getattr(String path, FileStat stat) {
|
public int getattr(String path, FileStat stat) {
|
||||||
if (path.equals("/")) {
|
if (path.equals("/")) {
|
||||||
stat.st_mode.set(FileStat.S_IFDIR | FileStat.ALL_READ);
|
stat.st_mode.set(FileStat.S_IFDIR | 0755);
|
||||||
stat.st_nlink.set(2);
|
stat.st_nlink.set(2);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user