This repository was archived by the owner on Apr 8, 2020. It is now read-only.
File tree 2 files changed +4
-4
lines changed
src/Microsoft.AspNetCore.NodeServices
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 149
149
var path = __webpack_require__ ( 3 ) ;
150
150
var startsWith = function ( str , prefix ) { return str . substring ( 0 , prefix . length ) === prefix ; } ;
151
151
var appRootDir = process . cwd ( ) ;
152
- function patchedLStat ( pathToStatLong ) {
152
+ function patchedLStat ( pathToStatLong , fsReqWrap ) {
153
153
try {
154
154
// If the lstat completes without errors, we don't modify its behavior at all
155
155
return origLStat . apply ( this , arguments ) ;
165
165
// ancestor directories are symlinks or not. If there's a genuine file
166
166
// permissions issue, it will still surface later when Node actually
167
167
// tries to read the file.
168
- return origLStat . call ( this , appRootDir ) ;
168
+ return origLStat . call ( this , appRootDir , fsReqWrap ) ;
169
169
}
170
170
else {
171
171
// In any other case, preserve the original error
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import * as path from 'path';
2
2
const startsWith = ( str : string , prefix : string ) => str . substring ( 0 , prefix . length ) === prefix ;
3
3
const appRootDir = process . cwd ( ) ;
4
4
5
- function patchedLStat ( pathToStatLong : string ) {
5
+ function patchedLStat ( pathToStatLong : string , fsReqWrap ?: any ) {
6
6
try {
7
7
// If the lstat completes without errors, we don't modify its behavior at all
8
8
return origLStat . apply ( this , arguments ) ;
@@ -19,7 +19,7 @@ function patchedLStat(pathToStatLong: string) {
19
19
// ancestor directories are symlinks or not. If there's a genuine file
20
20
// permissions issue, it will still surface later when Node actually
21
21
// tries to read the file.
22
- return origLStat . call ( this , appRootDir ) ;
22
+ return origLStat . call ( this , appRootDir , fsReqWrap ) ;
23
23
} else {
24
24
// In any other case, preserve the original error
25
25
throw ex ;
You can’t perform that action at this time.
0 commit comments