Commit 80ac6f8
authored
ext4: Report all file types in directoryEntryInfo.Type() and Info() (#350)
Type() only reported directories and symlinks, returning zero FileMode
for all other types.
This caused callers using WalkDir being mislead into treating special
files like regular files.
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>1 parent fb221b6 commit 80ac6f8
1 file changed
Lines changed: 19 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
| 187 | + | |
195 | 188 | | |
196 | 189 | | |
197 | 190 | | |
198 | 191 | | |
199 | | - | |
| 192 | + | |
200 | 193 | | |
201 | 194 | | |
202 | 195 | | |
203 | 196 | | |
204 | 197 | | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
211 | 215 | | |
212 | | - | |
213 | 216 | | |
214 | 217 | | |
215 | 218 | | |
| |||
0 commit comments