![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Symbolic Links | rcarnesiii | AIX | 1 | 08-17-2005 11:57 AM |
| cp a dty without symbolic links? | JAKEZ | SUN Solaris | 7 | 09-21-2004 09:55 AM |
| Problem changing owner of symbolic links? | noahcowan | OS X (Apple) | 1 | 06-07-2004 07:34 PM |
| Too many levels of symbolic links | Bab00shka | UNIX for Dummies Questions & Answers | 2 | 09-19-2003 09:15 AM |
| Finding symbolic links | mehtad | UNIX for Dummies Questions & Answers | 2 | 11-15-2001 02:26 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
A challenging problem involving symbolic links.
Hello,
I'm working on an application that bridges together several applications involved in creating a video workflow for editing with digital cinema cameras. The main platform is MacOSX. Because of the nature of some of the utilities for working with this video footage I must spoof filenames by using symbolic links to essentially rename files. This hack works great most of the time, but on some systems (possibly Leopard systems) it runs into problems, I've isolated them into two: In some situations, a symbolically linked file won't be recognized by a program, and won't appear in the softwares non-cocoa file selector. But other times it does. A system reboot will often remedy the problem, but I seek a way to check for this for users of my bridge. The second is sometimes the program will load a symbolic link, but it will refer to it by a /Volume path only. So for example it will refer to the path to the symbolic link as /Volumes/Macintosh HD/Users/Username/Desktop etc. instead of /Users/Username/Desktop ... etc. Again, only in some situation not in all. (I believe mostly on Leopard, but I'm not certain yet) Looking to gain a deeper understanding of how symbolic links are processed by the system. Thanks in advance for any insights. IBloom |
| Forum Sponsor | ||
|
|
|
|||
|
As a guess, your program is calling lstat() on the filename, under some cirumstances. This is a way to see if the file is a link.
By definition symbolic links should work, but some developer is not playing fair. Try reading the source of the app that fails. Possibly to prevent something like what you are trying to do. Last edited by jim mcnamara; 03-24-2008 at 03:18 AM. |
|
|||
|
Quote:
The plot thickens as in some cases the program sees the path as / Volumes/Macintosh HD/Volumes/Macintosh HD/Users/Username/Desktop.. Can't figure it out, its making a loop around the mount point or something. |
|||
| Google The UNIX and Linux Forums |