Commit 7ab87a0
btrfs-progs: receive: don't use O_NOATIME to open stream for dumping
open() returns EPERM with O_NOATIME if the user isn't root, and the file is
owned by a different UID. Normally this isn't a problem as receiving a stream
involves BTRFS_IOC_TREE_SEARCH which requires root, but --dump is an
unprivileged operation.
Pull-request: #1024
Signed-off-by: Mark Harmstone <mark@harmstone.com>
Signed-off-by: David Sterba <dsterba@suse.com>1 parent 4625567 commit 7ab87a0
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1783 | 1783 | | |
1784 | 1784 | | |
1785 | 1785 | | |
1786 | | - | |
| 1786 | + | |
| 1787 | + | |
| 1788 | + | |
| 1789 | + | |
| 1790 | + | |
| 1791 | + | |
1787 | 1792 | | |
1788 | 1793 | | |
1789 | 1794 | | |
| |||
0 commit comments