This repository was archived by the owner on Jan 15, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -228,9 +228,9 @@ exports.extract = function (cwd, opts) {
228
228
229
229
var stat = function ( err ) {
230
230
if ( err ) return next ( err )
231
- if ( win32 ) return next ( )
232
231
utimes ( name , header , function ( err ) {
233
232
if ( err ) return next ( err )
233
+ if ( win32 ) return next ( )
234
234
chperm ( name , header , next )
235
235
} )
236
236
}
Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ test('strip + map', function (t) {
164
164
} )
165
165
166
166
test ( 'map + dir + permissions' , function ( t ) {
167
- t . plan ( 2 )
167
+ t . plan ( win32 ? 1 : 2 ) // skip chmod test, it's not working like unix
168
168
169
169
var a = path . join ( __dirname , 'fixtures' , 'b' )
170
170
var b = path . join ( __dirname , 'fixtures' , 'copy' , 'a-perms' )
@@ -184,7 +184,9 @@ test('map + dir + permissions', function (t) {
184
184
var files = fs . readdirSync ( b ) . sort ( )
185
185
var stat = fs . statSync ( path . join ( b , 'a' ) )
186
186
t . same ( files . length , 1 )
187
- t . same ( stat . mode & parseInt ( 777 , 8 ) , parseInt ( 700 , 8 ) )
187
+ if ( ! win32 ) {
188
+ t . same ( stat . mode & parseInt ( 777 , 8 ) , parseInt ( 700 , 8 ) )
189
+ }
188
190
} )
189
191
} )
190
192
You can’t perform that action at this time.
0 commit comments