Menu

#292 Full path no longer printed using -P

None
closed-rejected
nobody
None
5
2020-09-06
2017-04-13
No

When upgrading from version 13.8.9 to version 15.8b we found that cscope no longer output full path names when using the -P argument. Only relative paths were being printed.

The following src file change to find.c fixed the issue, though it has not been tested extensively so we dont know if this regressed other finctionality

% dpred find.c
619c619
<                          srcfiles[i]);
---
>                          filepath(srcfiles[i]));
851c851
<       (void) fprintf(output, "%s %s ", file, func);
---
>       (void) fprintf(output, "%s %s ", filepath(file), func);
1272c1272
<                       (void) fprintf(refsfound, "%s ", file);
---
>                       (void) fprintf(refsfound, "%s ", filepath(file));

This was done on Red Hat 2.6.32-642.11.1.el6.x86_64

Discussion

  • Hans-Bernhard Broeker

    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -2,6 +2,7 @@
    
     The following src file change to find.c fixed the issue, though it has not been tested extensively so we dont know if this regressed other finctionality
    
    +~~~~
     % dpred find.c
     619c619
     <                          srcfiles[i]);
    @@ -15,6 +16,6 @@
     <                       (void) fprintf(refsfound, "%s ", file);
     ---
     >                       (void) fprintf(refsfound, "%s ", filepath(file));
    -
    +~~~~
    
     This was done on Red Hat 2.6.32-642.11.1.el6.x86_64
    
    • Group: -->
     
  • Hans-Bernhard Broeker

    There never was a version 13.8.9 in this incarnation of cscope, so this was not actually an upgrade, it was a tool switch. Nor did -P ever promise to print absolute paths --- it prints the relative paths with the prefix you gave as argument to the -P option.

     
  • Hans-Bernhard Broeker

    • status: open --> open-rejected
     
  • Mark Jacquet

    Mark Jacquet - 2017-04-13

    Ok, your loss!

     
  • Hans-Bernhard Broeker

    • status: open-rejected --> closed-rejected
     

Log in to post a comment.