Ticket #1 (closed defect: fixed)

Opened 5 years ago

Last modified 4 years ago

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) (diff)

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)

oops.

Of course, this only affects non-root users.

Change History

comment:1 Changed 5 years ago by ben

  • Description modified (diff)

comment:2 Changed 5 years ago by ben

  • Owner ben deleted
  • Component changed from bbackupd to bbackupquery

comment:3 Changed 5 years ago by ben

  • Milestone set to 0.11

comment:4 Changed 5 years ago by chris

  • Status changed from new to assigned
  • Owner set to chris

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

comment:5 Changed 4 years ago by chris

  • Status changed from assigned to closed
  • Resolution set to fixed

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.