Project

General

Profile

Actions

Bug #6593

closed

[SDKs] arv-get should use the stdout FD directly, rather than opening /dev/stdout

Added by Brett Smith almost 9 years ago. Updated almost 9 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
SDKs
Target version:
Story points:
0.5

Description

A process can always write to fd 1, but it may not always be able to open /dev/stdout. In particular, if a user in an SSH session uses sudo to open a shell for a different non-root user, /dev/stdout will be a link to the user's original tty, which the new user probably won't be able to open.

The destination argument should default to None. The main body should catch that case and use sys.stdout as the output file in that case, rather than opening /dev/stdout. Update other checks as needed.


Subtasks 2 (0 open2 closed)

Task #6712: Review 6593-arv-get-stdoutResolvedPeter Amstutz07/13/2015Actions
Task #6711: FixResolvedPeter Amstutz07/13/2015Actions
Actions

Also available in: Atom PDF