Opened 13 years ago

Closed 11 years ago

#1 closed defect (fixed)

When restoring a dir, if that dir does not have write permissions, restoration of files fails

Reported by: ben Owned by: chris
Priority: major Milestone: 0.11
Component: bbackupquery Version: 0.09
Keywords: Cc:

Description (last modified by ben)

Restoration will set permissions on a dir, then be surprised if these stop it from writing a file in it later. For example, here's some strace output:

chmod("some/directory", 0555) = 0
open("some/directory/file.ext", O_WRONLY|O_CREAT|O_EXCL|O_LARGEFILE, 0666) = -1 EACCES (Permission denied)


Of course, this only affects non-root users.

Change History (5)

comment:1 Changed 13 years ago by ben

Description: modified (diff)

comment:2 Changed 13 years ago by ben

Component: bbackupdbbackupquery
Owner: ben deleted

comment:3 Changed 13 years ago by ben

Milestone: 0.11

comment:4 Changed 12 years ago by chris

Owner: set to chris
Status: newassigned

Should be fixed by [1618] and [1619], needs testing and merging.

comment:5 Changed 11 years ago by chris

Resolution: fixed
Status: assignedclosed

The fix has been merged into trunk, and there is a test for it which passes, so I'm marking this as fixed.

Note: See TracTickets for help on using tickets.