The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
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

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-22-2008
Registered User
 

Join Date: Mar 2008
Posts: 2
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
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 03-24-2008
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 3,858
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.
Reply With Quote
  #3 (permalink)  
Old 03-24-2008
Registered User
 

Join Date: Mar 2008
Posts: 2
Quote:
Originally Posted by jim mcnamara View Post
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.
I don't think it's intentional. And it only happens on some systems, but all running the same version of the same software.

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.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 08:17 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0