File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -9,10 +9,8 @@ const fsPromises = require('fs/promises');
9
9
const {
10
10
access,
11
11
chmod,
12
- chown,
13
12
copyFile,
14
13
fchmod,
15
- fchown,
16
14
fdatasync,
17
15
fstat,
18
16
fsync,
@@ -29,8 +27,6 @@ const {
29
27
realpath,
30
28
rename,
31
29
rmdir,
32
- lchmod,
33
- lchown,
34
30
stat,
35
31
symlink,
36
32
write,
@@ -99,21 +95,6 @@ function verifyStatObject(stat) {
99
95
100
96
await chmod ( dest , 0o666 ) ;
101
97
await fchmod ( handle , 0o666 ) ;
102
- // lchmod is only available on OSX
103
- if ( common . isOSX ) {
104
- await lchmod ( dest , 0o666 ) ;
105
- }
106
-
107
- if ( ! common . isWindows ) {
108
- const gid = process . getgid ( ) ;
109
- const uid = process . getuid ( ) ;
110
- await chown ( dest , uid , gid ) ;
111
- await fchown ( handle , uid , gid ) ;
112
- // lchown is only available on OSX
113
- if ( common . isOSX ) {
114
- await lchown ( dest , uid , gid ) ;
115
- }
116
- }
117
98
118
99
await utimes ( dest , new Date ( ) , new Date ( ) ) ;
119
100
You can’t perform that action at this time.
0 commit comments