bugstoreBackup - Bugs: bug #40929, linkToDirs.pl changes file...


bug #40929: linkToDirs.pl changes file premissions of linked-to files (instead of the link itself)

Submitted by:  None
Submitted on:  Mon 16 Dec 2013 06:59:54 PM UTC  
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Open

Add a New Comment (Rich Markup)

You are not logged in

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


Thu 19 Dec 2013 04:37:10 PM UTC, comment #1: 

Thanks for the hint.

Is corrected in the next release.

(If you already use it now, change:





Heinz-Josef Claes <hjclaes>
Project Administrator
Mon 16 Dec 2013 06:59:54 PM UTC, original submission:  

linkToDirs.pl is changing the file ownership and permissions of files being pointed at by symlinks, instead of the symlink itself.

This is an easy fix. At line ~800 or so, replace chown/chmod/utime with:  (taken from storeBackup.pl)

if ($t eq 'l')
   my $chown =
       forkProc->new('-exec' => 'chown,
                     '-param' => ['-h', "$uid:$gid",
                     '-outRandom' => $tmpdir/stbuCHOWN-",
                     '-prLog' => $prLog);

   chown $uid, $gid, $fnew
   chmod $mode, $fnew;
   utime $atime, $mtime, $fnew;



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

Attach Files:

Attached Files
file #29979:  linkToDirs-patched.pl added by None (26KiB - application/octet-stream - linkToDirs.pl with patch applied)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by hjclaes (Posted a comment)

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

    Only logged-in users can vote.




    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-12-19 hjclaes StatusNone => Fixed
    2013-12-16 None Attached File- => Added linkToDirs-patched.pl, #29979

    Back to the top

    Powered by Savane 3.5