Timestamp:
Nov 19, 2010, 2:15:49 AM (13 years ago)
Author:
Karl Ramm <kcr@1ts.org>
Branches:
master, release-1.10, release-1.7, release-1.8, release-1.9
Children:
1dd285b
Parents:
5fca55f
git-author:
Jason Gross <jgross@MIT.EDU> (11/17/10 02:18:48)
git-committer:
Karl Ramm <kcr@1ts.org> (11/19/10 02:15:49)
Message:
Fixed :unsub to make it work if ~/.zephyr.subs is a symlink (trac 133)

link() fails on AFS if the target is a symlink.  Additionally, on
systems where link() succeeds, barnowl overwrites the symlink, instead
of the actual file.  To fix this, I've changed owl_util_file_deleteline
to resolve symlinks on the passed file name first.  The new (backup)
file is written in the resolved directory, not the directory where the
symlink itself is found.

A helper function, owl_util_recursive_resolve_link, is added to
recursivly resolve symlinks (if necessary).

Reviewed-By: Karl Ramm <kcr@1ts.org>
(No files)

Note: See TracChangeset for help on using the changeset viewer.