From b39a0c05e41f5dca5931cd3d550ef0c2a4142e4b Mon Sep 17 00:00:00 2001 From: Matt Colyer Date: Wed, 13 Aug 2008 23:21:04 -0700 Subject: Minor cleanups, refactored and commented iphone.c. --- src/ifuse.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/ifuse.c') 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) { if (!file){ res = -ENOENT; } else { - //stbuf->st_mode = file->type | 0444; // testing write access too now stbuf->st_mode = file->type | 0644; // but we don't want anything on the iPhone executable, like, ever stbuf->st_size = file->size; - //stbuf->st_nlink = 2; } return res; @@ -98,8 +96,6 @@ static int ifuse_open(const char *path, struct fuse_file_info *fi) { AFCFile *file; AFClient *afc = fuse_get_context()->private_data; uint32 mode = 0; - /*if((fi->flags & 3) != O_RDONLY) - return -EACCES;*/ // trying to test write access here if ((fi->flags & 3) == O_RDWR || (fi->flags & 3) == O_WRONLY) { mode = AFC_FILE_READ; -- cgit v1.1-32-gdbae