diff options
author | Chris Wilson <chris+github@qwirx.com> | 2007-04-29 13:46:22 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2007-04-29 13:46:22 +0000 |
commit | 9ddebaa7d9534fae58cc9cca6f8fdd5139bccf69 (patch) | |
tree | dd05812c008215779b9dc611c6a3b7bd68f9b78a /lib/backupclient/BackupClientFileAttributes.h | |
parent | 5042e10cbb84843948a06fe3f7f45175e836a21f (diff) |
Make directories user-writable while restoring them, so that restoring
read-only directories as a non-root user doesn't crash. Restore the
correct permissions after restoring the directory's contents. (refs #3)
Diffstat (limited to 'lib/backupclient/BackupClientFileAttributes.h')
-rw-r--r-- | lib/backupclient/BackupClientFileAttributes.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/backupclient/BackupClientFileAttributes.h b/lib/backupclient/BackupClientFileAttributes.h index 62ba2184..fa56ff65 100644 --- a/lib/backupclient/BackupClientFileAttributes.h +++ b/lib/backupclient/BackupClientFileAttributes.h @@ -45,7 +45,8 @@ public: void ReadAttributes(const char *Filename, bool ZeroModificationTimes = false, box_time_t *pModTime = 0, box_time_t *pAttrModTime = 0, int64_t *pFileSize = 0, InodeRefType *pInodeNumber = 0, bool *pHasMultipleLinks = 0); - void WriteAttributes(const char *Filename) const; + void WriteAttributes(const char *Filename, + bool MakeUserWritable = false) const; bool IsSymLink() const; |