Commit f45e199
fs: fix realpath of namespaced drive paths
The JavaScript realpath implementation probes a namespaced drive root
through the fs binding. Windows path resolution drops the trailing
separator from that probe, so lstat receives C: and reports EISDIR.
Use the regular drive-root spelling only for the probe. Preserve the
namespaced spelling for traversal and returned paths.
Signed-off-by: Jason Zhang <xzha4350@gmail.com>
PR-URL: #65378
Fixes: #62446
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Stefan Stojanovic <stefan.stojanovic@janeasystems.com>1 parent f3db8db commit f45e199
3 files changed
Lines changed: 97 additions & 4 deletions
File tree
- lib
- test
- es-module
- parallel
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2716 | 2716 | | |
2717 | 2717 | | |
2718 | 2718 | | |
| 2719 | + | |
2719 | 2720 | | |
2720 | 2721 | | |
2721 | 2722 | | |
2722 | 2723 | | |
| 2724 | + | |
2723 | 2725 | | |
2724 | 2726 | | |
2725 | 2727 | | |
| 2728 | + | |
| 2729 | + | |
| 2730 | + | |
| 2731 | + | |
| 2732 | + | |
| 2733 | + | |
| 2734 | + | |
2726 | 2735 | | |
2727 | 2736 | | |
2728 | 2737 | | |
| |||
2731 | 2740 | | |
2732 | 2741 | | |
2733 | 2742 | | |
| 2743 | + | |
2734 | 2744 | | |
2735 | 2745 | | |
2736 | 2746 | | |
| |||
2807 | 2817 | | |
2808 | 2818 | | |
2809 | 2819 | | |
2810 | | - | |
| 2820 | + | |
| 2821 | + | |
2811 | 2822 | | |
2812 | 2823 | | |
2813 | 2824 | | |
| |||
2892 | 2903 | | |
2893 | 2904 | | |
2894 | 2905 | | |
2895 | | - | |
| 2906 | + | |
| 2907 | + | |
2896 | 2908 | | |
2897 | 2909 | | |
2898 | 2910 | | |
| |||
2966 | 2978 | | |
2967 | 2979 | | |
2968 | 2980 | | |
2969 | | - | |
| 2981 | + | |
2970 | 2982 | | |
2971 | 2983 | | |
2972 | 2984 | | |
| |||
3055 | 3067 | | |
3056 | 3068 | | |
3057 | 3069 | | |
3058 | | - | |
| 3070 | + | |
3059 | 3071 | | |
3060 | 3072 | | |
3061 | 3073 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
50 | 68 | | |
51 | 69 | | |
52 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
0 commit comments