From: <jh...@us...> - 2009-02-06 17:42:51
|
Revision: 73 http://etch.svn.sourceforge.net/etch/?rev=73&view=rev Author: jheiss Date: 2009-02-06 17:42:49 +0000 (Fri, 06 Feb 2009) Log Message: ----------- Delete the links we make to test lchown/lchmod. Tempfile does a "delete if exist" thing on cleanup, so if the link target tempfile gets cleaned up first the link will appear to not exist and not get auto-cleaned. Since we're playing games and turning the file into a link it seems reasonable that we should be responsible for cleanup. Modified Paths: -------------- trunk/client/etch.rb Modified: trunk/client/etch.rb =================================================================== --- trunk/client/etch.rb 2009-02-06 17:42:15 UTC (rev 72) +++ trunk/client/etch.rb 2009-02-06 17:42:49 UTC (rev 73) @@ -680,6 +680,7 @@ rescue Errno::EPERM raise if Process.euid == 0 end + File.delete(lchowntestlink) end if @lchmod_supported.nil? lchmodtestlink = Tempfile.new('etchlchmodtest').path @@ -692,6 +693,7 @@ rescue NotImplementedError @lchmod_supported = false end + File.delete(lchmodtestlink) end set_permissions = false This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |