diff options
| author | 2008-08-13 23:21:04 -0700 | |
|---|---|---|
| committer | 2008-08-13 23:21:04 -0700 | |
| commit | b39a0c05e41f5dca5931cd3d550ef0c2a4142e4b (patch) | |
| tree | f765ebe786886ded0a74521c9fa1c13b32e2837b /src/ifuse.c | |
| parent | f281e24cca43149db1f6077a8b42e456393a8856 (diff) | |
| download | libimobiledevice-b39a0c05e41f5dca5931cd3d550ef0c2a4142e4b.tar.gz libimobiledevice-b39a0c05e41f5dca5931cd3d550ef0c2a4142e4b.tar.bz2 | |
Minor cleanups, refactored and commented iphone.c.
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; |
