truongdaohp / iphonedisk

Automatically exported from code.google.com/p/iphonedisk
0 stars 0 forks source link

Symlinks are not followed #42

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
## What steps will reproduce the problem?
1. Mount filesystem
2. Open root folder
3. Try to access /Applications

## What is the expected output?
Follow the /Applications symlink

## What do you see instead?
Finder:
*The operation can’t be completed. An unexpected error occurred (error code 
-43).*

Terminal:
`$ file Applications 
Applications: cannot open `Applications' (No such file or directory)`

## What version of the product are you using? On what operating system?
* Disk for iPhone 20100411.dmg
* Snow Leopard 10.6.4

Original issue reported on code.google.com by LKRai...@gmail.com on 30 Oct 2010 at 3:38

GoogleCodeExporter commented 8 years ago
Thanks for the report.

Just to make sure I understand the bug report, I have a couple of questions:
Are you trying to access the /Applications in the mobile home directory or 
/Applications in the root?
Are you using a jailbroken device with an additional or modified AFC library?
Can you provide some more details about why you think this is specific to 
sym-links? (Perhaps some other ls output or comparison of the directory tree 
from an SSH connection would be helpful)

I did provide some sym link fixes to the source tree that have not been release 
yet, but before claiming that they will fix this issue I want to make sure I 
understand it correctly.

Original comment by allen.po...@gmail.com on 31 Oct 2010 at 8:14

GoogleCodeExporter commented 8 years ago
Hi,

* I am trying to access /Applications in the root, although any kind of symlink 
doesn't work.
* I am using jailbroken devices; more info below:

## iPhone 2G
Jailbroken, firmware 3.0:

### SSH
`
root# ls -l /
total 22
lrwxr-xr-x  1 root admin   27 Aug 30  2009 Applications -> 
/var/stash/Applications.pwn/
drwxrwxr-t  8 root admin  340 May 22  2009 Developer/
drwxr-xr-t 17 root admin  782 Apr 11  2010 Library/
drwxr-xr-x  3 root wheel  136 Oct 30 13:24 System/
lrwxr-xr-x  1 root staff   11 Sep 27 09:49 User -> /var/mobile/
drwxr-xr-x  2 root wheel 2040 May  6 16:25 bin/
drwxr-xr-x  2 root wheel   68 Oct 28  2006 boot/
drwxrwxr-t  2 root admin   68 May 14  2009 cores/
dr-xr-xr-x  3 root wheel 1278 Sep 27 09:49 dev/
lrwxrwxrwx  1 root wheel   12 Aug 30  2009 etc -> private/etc//
drwxr-xr-x  2 root wheel   68 Oct 28  2006 lib/
drwxr-xr-x  2 root wheel   68 Oct 28  2006 mnt/
drwxr-xr-x  4 root wheel  170 Oct 30 13:23 private/
drwxr-xr-x  2 root wheel 1530 May  4 01:10 sbin/
lrwxrwxrwx  1 root wheel   16 Aug 30  2009 tmp -> private/var/tmp//
drwxr-xr-x  7 root wheel  408 Oct 30 13:24 usr/
lrwxrwxrwx  1 root wheel   12 Aug 30  2009 var -> private/var//
`

### iphonedisk
`
ls -l
ls: Applications: No such file or directory
ls: User: No such file or directory
ls: etc: No such file or directory
ls: tmp: No such file or directory
ls: var: No such file or directory
total 96
drwxrwxrwx  2 root  wheel   340 Dec 31  1969 Developer
drwxrwxrwx  2 root  wheel   782 Dec 31  1969 Library
drwxrwxrwx  2 root  wheel   136 Dec 31  1969 System
drwxrwxrwx  2 root  wheel  2040 Dec 31  1969 bin
drwxrwxrwx  2 root  wheel    68 Dec 31  1969 boot
drwxrwxrwx  2 root  wheel    68 Dec 31  1969 cores
drwxrwxrwx  2 root  wheel  1263 Dec 31  1969 dev
drwxrwxrwx  2 root  wheel    68 Dec 31  1969 lib
drwxrwxrwx  2 root  wheel    68 Dec 31  1969 mnt
drwxrwxrwx  2 root  wheel   170 Dec 31  1969 private
drwxrwxrwx  2 root  wheel  1530 Dec 31  1969 sbin
drwxrwxrwx  2 root  wheel   408 Dec 31  1969 usr
`

`
root# otool -L /usr/libexec/afcd 
/usr/libexec/afcd:
    /usr/lib/libafc.dylib (compatibility version 1.0.0, current version 1.0.0)
    /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation (compatibility version 150.0.0, current version 478.47.7)
    /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
    /usr/lib/liblockdown.dylib (compatibility version 1.0.0, current version 1.0.0)
    /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.0.16)
`

## iPad
Jailbroken, afc2add installed:

### SSH
`
root# ls -l /
total 42
lrwxr-xr-x  1 root admin   23 Aug  5 15:21 Applications -> 
/var/stash/Applications/
drwxrwxr-x  2 root admin   68 May 28 21:51 Developer/
drwxrwxr-x 17 root admin  816 Oct 30 12:25 Library/
drwxr-xr-x  3 root wheel  136 Oct 29 00:46 System/
lrwxr-xr-x  1 root admin   11 Oct 30 12:42 User -> /var/mobile/
drwxr-xr-x  2 root wheel 1938 Aug  5 15:22 bin/
drwxr-xr-x  2 root wheel   68 Oct 28  2006 boot/
drwxrwxr-t  2 root admin   68 Jan 15  2010 cores/
dr-xr-xr-x  3 root wheel 1391 Oct 30 12:42 dev/
lrwxr-xr-x  1 root wheel   12 Aug  5 15:22 etc -> private/etc//
drwxr-xr-x  2 root wheel   68 Oct 28  2006 lib/
drwxr-xr-x  2 root wheel   68 Oct 28  2006 mnt/
drwxr-xr-x  4 root wheel  170 Oct 29 00:46 private/
drwxr-xr-x  2 root wheel 1292 Aug  5 15:22 sbin/
lrwxr-xr-x  1 root wheel   16 Aug  5 15:22 tmp -> private/var/tmp//
drwxr-xr-x  6 root wheel  340 Oct 29 00:46 usr/
lrwxr-xr-x  1 root wheel   12 Aug  5 15:22 var -> private/var//
`

### iphonedisk
`
ls -l
ls: Applications: No such file or directory
ls: User: No such file or directory
ls: etc: No such file or directory
ls: tmp: No such file or directory
ls: var: No such file or directory
total 192
drwxrwxrwx  2 root  wheel    68 Dec 31  1969 Developer
drwxrwxrwx  2 root  wheel   816 Dec 31  1969 Library
drwxrwxrwx  2 root  wheel   136 Dec 31  1969 System
drwxrwxrwx  2 root  wheel  2074 Dec 31  1969 bin
drwxrwxrwx  2 root  wheel    68 Dec 31  1969 boot
drwxrwxrwx  2 root  wheel    68 Dec 31  1969 cores
drwxrwxrwx  2 root  wheel  1376 Dec 31  1969 dev
drwxrwxrwx  2 root  wheel    68 Dec 31  1969 lib
drwxrwxrwx  2 root  wheel    68 Dec 31  1969 mnt
drwxrwxrwx  2 root  wheel   170 Dec 31  1969 private
drwxrwxrwx  2 root  wheel  1632 Dec 31  1969 sbin
drwxrwxrwx  2 root  wheel   408 Dec 31  1969 usr
`

`
root# otool -L /usr/libexec/afcd 
/usr/libexec/afcd:
    /usr/lib/libafc.dylib (compatibility version 1.0.0, current version 1.0.0)
    /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation (compatibility version 150.0.0, current version 478.61.0)
    /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
    /usr/lib/liblockdown.dylib (compatibility version 1.0.0, current version 1.0.0)
    /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.1.0)
`

I don't know if this is enough information to help you, I can supply more info 
if nedded.

Original comment by LKRai...@gmail.com on 1 Nov 2010 at 2:53

GoogleCodeExporter commented 8 years ago
That is plenty of information, thanks :)

I suspect that the latest version from head should fix this issue, but i'll 
double check.  The "action item" for this bug is to simply release a new 
version based on the head of the tree.

Original comment by allen.po...@gmail.com on 1 Nov 2010 at 2:55

GoogleCodeExporter commented 8 years ago

Original comment by allen.po...@gmail.com on 21 Aug 2011 at 4:53