Skip to content

Commit b657820

Browse files
Update comment for chmod operation
Clarified comment to specify skipping special files.
1 parent 399fd52 commit b657820

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

awscli/customizations/streamingoutputarg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def save_file(self, parsed, **kwargs):
111111
self._output_file, os.O_WRONLY | os.O_CREAT | os.O_TRUNC, 0o600
112112
)
113113
if stat.S_ISREG(os.fstat(fd).st_mode):
114-
# Only chmod regular files; skip devices like /dev/null
114+
# Only chmod regular files; skip special files like /dev/null
115115
os.chmod(self._output_file, 0o600)
116116
with os.fdopen(fd, 'wb') as fp:
117117
data = body.read(buffer_size)

0 commit comments

Comments
 (0)