Re: symlinks, lstat, relative/absolute combos
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On 22 Mar 2011, at 14:08, Steven Abner wrote: Jonas _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... a return of ../..//System . Should "../../" be ignored and jump to System directory of of root? Or is "/" before "System" suppose to mean ignore me please? Currently my code just returns "//" is an error. As I read it: from here (relative path) go to parent (..), from here (/) go to parent (..) from here (/) go to (/System). Or is "//" an abbreviated "/./" , which currently seems unsupported? // means the same as / in practice (it sometimes happens because of e.g. scripts that concatenate a path already ending in / with "/ $subdir" or so). So in your case, it simply means ../../System This email sent to site_archiver@lists.apple.com
participants (1)
-
Jonas Maebe