bugGNU Octave - Bugs: bug #50994, package installation into...

 
 

bug #50994: package installation into symlinked directory may fail

Submitted by:  Olaf Till <i7tiol>
Submitted on:  Wed 10 May 2017 02:54:23 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Unexpected Error
Status: NoneAssigned to: None
Originator Name: Olaf TillOpen/Closed: Open
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 11 May 2017 03:28:39 PM UTC, comment #1:

It would be preferable to stay within Octave rather than going out to the shell which could introduce portability problems between Linux, Windows, and Macs.

I would look at using Octave functions canonicalize_file_name in combination with strcmp, or maybe stat, to check for identical files.

Rik <rik5>
Project Administrator
Wed 10 May 2017 02:54:23 PM UTC, original submission:

scripts/pkg/private/install.m, subfunction copy_files, line 507:
compares strings to check if directories are identical, which may (did for me) fail for symlinks. Should use the shells '-ef' comparison or the 'realpath' command, don't know which is better.

Olaf Till <i7tiol>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by i7tiol (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup1