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: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned 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:

"fnew"],

to

$fnew],

;-)

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",
"fnew"],
'-outRandom' => $tmpdir/stbuCHOWN-",
'-prLog' => $prLog);
chown->wait();

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

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

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
  • -unavailable- added by hjclaes (Posted a comment)
  •  

    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 logged-in users can vote.

     

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

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 19 Dec 2013 04:37:10 PM UTChjclaesStatusNone=>Fixed
    Mon 16 Dec 2013 06:59:55 PM UTCNoneAttached File-=>Added linkToDirs-patched.pl, #29979

    Back to the top


    Powered by Savane 3.1-cleanup1