Commit 172fee8
committed
fix(cp): use target file mode for symlinks when following links
When copying directories with followLinks=true, symlinks show 0777 mode
but that's not the target file's actual permissions. Now we pass mode=0
for followed symlinks so CpToInstance auto-detects from the target via os.Stat.1 parent 40c729e commit 172fee8
1 file changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
348 | 348 | | |
349 | 349 | | |
350 | 350 | | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
351 | 361 | | |
352 | 362 | | |
353 | 363 | | |
354 | 364 | | |
355 | 365 | | |
356 | 366 | | |
357 | | - | |
| 367 | + | |
358 | 368 | | |
359 | 369 | | |
360 | 370 | | |
| |||
0 commit comments