diff options
author | Matt Colyer | 2008-08-05 23:25:35 -0700 |
---|---|---|
committer | Matt Colyer | 2008-08-05 23:28:10 -0700 |
commit | 25e85bf5362b6f4c1878665c6037fdbfdc25c155 (patch) | |
tree | 437979cdb4b9a7958a3d891d6a39a7be2bf61d17 /src/ifuse.c | |
parent | 4b558a53f61005b0ca49665d2da92303f6e14872 (diff) | |
download | libimobiledevice-25e85bf5362b6f4c1878665c6037fdbfdc25c155.tar.gz libimobiledevice-25e85bf5362b6f4c1878665c6037fdbfdc25c155.tar.bz2 |
Zack's final changes to the pairing.
Diffstat (limited to 'src/ifuse.c')
-rw-r--r-- | src/ifuse.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/ifuse.c b/src/ifuse.c index 900bb17..f33eaaa 100644 --- a/src/ifuse.c +++ b/src/ifuse.c @@ -52,13 +52,12 @@ static int ifuse_getattr(const char *path, struct stat *stbuf) { file = afc_get_file_info(afc, path); if (!file){ res = -ENOENT; - return res; + } else { + stbuf->st_mode = file->type | 0444; + stbuf->st_size = file->size; + //stbuf->st_nlink = 2; } - stbuf->st_mode = file->type | 0444; - stbuf->st_size = file->size; - //stbuf->st_nlink = 2; - return res; } |