bug-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #6643] import fails with relative pathname


From: nobody
Subject: [bug #6643] import fails with relative pathname
Date: Tue, 18 Nov 2003 20:05:55 -0500
User-agent: Mozilla/5.0 (compatible; Konqueror/3.1; Linux)

=================== BUG #6643: FULL BUG SNAPSHOT ===================
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=6643&group_id=3825

Submitted by: jgdelapp                Project: cfengine                     
Submitted on: Wed 11/19/2003 at 01:05
Category:  Source Code                Severity:  5 - Major                  
Bug Group:  None                      Resolution:  None                     
Assigned to:  None                    Status:  Open                         
Release:  2.1.0p1                     Platform:  GNU/Linux                  
Platform details (version, distribution):  rh9Fixed with patch #:               
    

Summary:  import fails with relative pathname

Original Submission:  in parse.c, the function FindInputFile uses 
LastFileSeparator in an attempt to determine whether a path is absolute. The 
test is incorrect, because relative paths containing slashes will cause the 
test to skip the append. As written, you cannot import from anywhere but an 
absolute path or a file residing within the CFINPUTS directory.

I believe the test should be using IsFileSep instead of LastFileSeparator.

A patch is attached.  Patch compiled on rh_9 and appears to correct the problem.



No Followups Have Been Posted


CC list is empty


File Attachments
****************

-------------------------------------------------------
Date: Wed 11/19/2003 at 01:05  Name: cfengine-2.1.0p1-parse.patch  Size: 0KB   
By: jgdelapp
Patch to allow subdirectories relative to CFINPUTS in import
http://savannah.gnu.org/bugs/download.php?group_id=3825&bug_id=6643&bug_file_id=837


For detailed info, follow this link:
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=6643&group_id=3825

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]