File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
branches/tensorflow-next/test/ParseableInterface/Inputs Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -1461,4 +1461,4 @@ refs/heads/master-rebranch: 86e95c23aa0d37f24ec138b7853146c1cead2e40
1461
1461
refs/heads/rdar-53901732: 9bd06af3284e18a109cdbf9aa59d833b24eeca7b
1462
1462
refs/heads/revert-26776-subst-always-returns-a-type: 1b8e18fdd391903a348970a4c848995d4cdd789c
1463
1463
refs/heads/tensorflow-merge: 8b854f62f80d4476cb383d43c4aac2001dde3cec
1464
- refs/heads/tensorflow-next: af1cd7d9d8cc0a067a5d003a207ddcb4e1802069
1464
+ refs/heads/tensorflow-next: b63e32aec648b30d2337c41599fc70aa4680cc5a
Original file line number Diff line number Diff line change 21
21
buffer = ctypes .create_unicode_buffer (UNLEN + 1 )
22
22
size = ctypes .c_uint (len (buffer ))
23
23
GetUserNameW (buffer , ctypes .byref (size ))
24
+ # For NetworkService, Host$ is returned, so we choose have to turn it back
25
+ # into something that icacls understands.
26
+ if not buffer .value .endswith ('$' ):
27
+ user_name = buffer .value
28
+ else :
29
+ user_name = 'NT AUTHORITY\\ NetworkService'
24
30
25
31
for path in sys .argv [1 :]:
26
32
subprocess .call (['icacls' , path , '/deny' ,
27
- '{}:(R)' .format (buffer . value )])
33
+ '{}:(R)' .format (user_name )])
28
34
else :
29
35
for path in sys .argv [1 :]:
30
36
subprocess .call (['chmod' , 'a-r' , path ])
You can’t perform that action at this time.
0 commit comments