[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

'svnlook diff' fails when $TMPDIR contains symlinks

From: Ian P. Cardenas <ian_at_srand.com>
Date: 2004-05-06 19:18:58 CEST

Hi,

Would someone please confirm this as a bug with svnlook in tag 1.0.2?

It's a problem for Mac OS X at least because /tmp itself is a symlink.

I searched the archives and the buglist but didn't find an existing
issue documented. Although Google found the following references to
the problem.
http://www.contactor.se/~dast/svnusers/archive-2004-03/2094.shtml
http://www.contactor.se/~dast/svnusers/archive-2004-03/2128.shtml
http://www.contactor.se/~dast/svnusers/archive-2004-04/0326.shtml

patch against 1.0.2 is attached.

log demonstrating duplication and resolution of error follow.

WeaponX:/tmp/svn/subversion/svnlook srand$ uname -a
Darwin WeaponX.local 7.3.0 Darwin Kernel Version 7.3.0: Fri Mar 5
14:22:55 PST 2004; root:xnu/xnu-517.3.15.obj~4/RELEASE_PPC Power
Macintosh powerpc
WeaponX:/tmp/svn/subversion/svnlook srand$ ./svnlook --version
svnlook, version 1.0.2 (r9423)
    compiled May 6 2004, 11:38:27

Copyright (C) 2000-2004 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
This product includes software developed by CollabNet
(http://www.Collab.Net/).

WeaponX:/tmp/svn/subversion/svnlook srand$ ./svnlook diff -r 3
/usr/local/svn
svn: Error creating dir '/tmp' (path exists)
svn: Can't open file
'/tmp/svnlook.1/project/trunk/docs/ClassDiagram.graffle': No such file
or directory

WeaponX:/tmp/svn/subversion/svnlook srand$ ls -l /tmp
lrwxr-xr-x 1 root admin 11 18 Oct 2003 /tmp@ -> private/tmp

WeaponX:/tmp/svn srand$ patch -p0 < patch
patching file subversion/svnlook/main.c

WeaponX:/tmp/svn/subversion/svnlook srand$ ./svnlook diff -r 3
/usr/local/svn
Added: project/trunk/docs/ClassDiagram.graffle
===================================================================
[...]

--
Ian P. Cardenas
Synthoria Research And Development, LLC

  • application/octet-stream attachment: patch
Received on Thu May 6 19:23:23 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.