File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/Microsoft.AspNetCore.NodeServices Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 149149var path = __webpack_require__ ( 3 ) ;
150150var startsWith = function ( str , prefix ) { return str . substring ( 0 , prefix . length ) === prefix ; } ;
151151var appRootDir = process . cwd ( ) ;
152- function patchedLStat ( pathToStatLong ) {
152+ function patchedLStat ( pathToStatLong , fsReqWrap ) {
153153try {
154154// If the lstat completes without errors, we don't modify its behavior at all
155155return origLStat . apply ( this , arguments ) ;
165165// ancestor directories are symlinks or not. If there's a genuine file
166166// permissions issue, it will still surface later when Node actually
167167// tries to read the file.
168- return origLStat . call ( this , appRootDir ) ;
168+ return origLStat . call ( this , appRootDir , fsReqWrap ) ;
169169}
170170else {
171171// 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'
22const startsWith = ( str : string , prefix : string ) => str . substring ( 0 , prefix . length ) === prefix ;
33const appRootDir = process . cwd ( ) ;
44
5- function patchedLStat ( pathToStatLong : string ) {
5+ function patchedLStat ( pathToStatLong : string , fsReqWrap ?: any ) {
66try {
77// If the lstat completes without errors, we don't modify its behavior at all
88return origLStat . apply ( this , arguments ) ;
@@ -19,7 +19,7 @@ function patchedLStat(pathToStatLong: string){
1919// ancestor directories are symlinks or not. If there's a genuine file
2020// permissions issue, it will still surface later when Node actually
2121// tries to read the file.
22- return origLStat . call ( this , appRootDir ) ;
22+ return origLStat . call ( this , appRootDir , fsReqWrap ) ;
2323} else {
2424// In any other case, preserve the original error
2525throw ex ;
You can’t perform that action at this time.
0 commit comments