[Lxr-dev] [ lxr-Bugs-1111786 ] Failure to open file not detected
Brought to you by:
ajlittoz
From: SourceForge.net <no...@so...> - 2005-01-28 22:52:55
|
Bugs item #1111786, was opened at 2005-01-28 14:52 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=390117&aid=1111786&group_id=27350 Category: genxref Group: None Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Failure to open file not detected Initial Comment: lxr-0.9.3, perl 5.8.2, running against a CVS tree. The CVS code restricts the search path for "co"; in my installation, it wasn't located in that path. The check for success running "co" looks at $fileh, but open() sets $fileh regardless of success. Instead, check the return value from open() to determine whether "co" was run successfully, e.g. $rtn = open($fileh, "-|", "co -q -p$rev $clean_filename"); die ("...") unless $rtn; (CVS.pm ca. line 170) The open was failing silently, so the results from genxref were all empty files. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=390117&aid=1111786&group_id=27350 |