Commit 63b807f
Fix case when applying upperdir tar snapshot with empty files
Added size check to prevent sentry tmpfs mknodFromTar from trying to write empty files, this caused running containers from a snapshot from upper tar to fail when empty files were in the archive.1 parent a46c37d commit 63b807f
File tree
3 files changed
+12
-3
lines changed- pkg/sentry/fsimpl/tmpfs
- runsc/container
- test/cmd/test_app
3 files changed
+12
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
80 | 83 | | |
81 | | - | |
82 | 84 | | |
83 | 85 | | |
84 | 86 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4035 | 4035 | | |
4036 | 4036 | | |
4037 | 4037 | | |
4038 | | - | |
4039 | 4038 | | |
4040 | 4039 | | |
4041 | 4040 | | |
4042 | | - | |
| 4041 | + | |
4043 | 4042 | | |
4044 | 4043 | | |
4045 | 4044 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
| |||
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
| 95 | + | |
94 | 96 | | |
95 | 97 | | |
96 | 98 | | |
| |||
117 | 119 | | |
118 | 120 | | |
119 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
120 | 128 | | |
121 | 129 | | |
122 | 130 | | |
| |||
0 commit comments