diff options
Diffstat (limited to 'src/ifuse.c')
| -rw-r--r-- | src/ifuse.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/ifuse.c b/src/ifuse.c index 6a24bad..4967112 100644 --- a/src/ifuse.c +++ b/src/ifuse.c | |||
| @@ -53,10 +53,8 @@ static int ifuse_getattr(const char *path, struct stat *stbuf) { | |||
| 53 | if (!file){ | 53 | if (!file){ |
| 54 | res = -ENOENT; | 54 | res = -ENOENT; |
| 55 | } else { | 55 | } else { |
| 56 | //stbuf->st_mode = file->type | 0444; // testing write access too now | ||
| 57 | stbuf->st_mode = file->type | 0644; // but we don't want anything on the iPhone executable, like, ever | 56 | stbuf->st_mode = file->type | 0644; // but we don't want anything on the iPhone executable, like, ever |
| 58 | stbuf->st_size = file->size; | 57 | stbuf->st_size = file->size; |
| 59 | //stbuf->st_nlink = 2; | ||
| 60 | } | 58 | } |
| 61 | 59 | ||
| 62 | return res; | 60 | return res; |
| @@ -98,8 +96,6 @@ static int ifuse_open(const char *path, struct fuse_file_info *fi) { | |||
| 98 | AFCFile *file; | 96 | AFCFile *file; |
| 99 | AFClient *afc = fuse_get_context()->private_data; | 97 | AFClient *afc = fuse_get_context()->private_data; |
| 100 | uint32 mode = 0; | 98 | uint32 mode = 0; |
| 101 | /*if((fi->flags & 3) != O_RDONLY) | ||
| 102 | return -EACCES;*/ // trying to test write access here | ||
| 103 | 99 | ||
| 104 | if ((fi->flags & 3) == O_RDWR || (fi->flags & 3) == O_WRONLY) { | 100 | if ((fi->flags & 3) == O_RDWR || (fi->flags & 3) == O_WRONLY) { |
| 105 | mode = AFC_FILE_READ; | 101 | mode = AFC_FILE_READ; |
