bschoening commented on code in PR #4076:
URL: https://github.com/apache/cassandra/pull/4076#discussion_r2038643601
##########
pylib/cqlshlib/util.py:
##########
@@ -74,12 +74,15 @@ def identity(x):
def is_file_secure(filename):
try:
st = os.stat(filename)
+ uid = os.getuid()
except OSError as e:
if e.errno != errno.ENOENT:
raise
# the file doesn't exist, the security of it is irrelevant
return True
- uid = os.getuid()
+ except AttributeError as e:
Review Comment:
Yes, I thought that too, but when I tried it, accessing **e.errno** threw a
second exception, because that also requires Unix.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]