Bug 1331416 - preupg prints error messages when stdin is redirected from pipe
Summary: preupg prints error messages when stdin is redirected from pipe
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: preupgrade-assistant
Version: 6.8
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Michal Bocek
QA Contact: Tereza Cerna
URL:
Whiteboard:
: 1363911 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-28 13:23 UTC by Tereza Cerna
Modified: 2019-07-01 15:45 UTC (History)
4 users (show)

Fixed In Version: preupgrade-assistant-2.6.1-1.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-07-01 15:35:04 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github upgrades-migrations preupgrade-assistant issues 343 0 None None None 2017-11-06 12:41:01 UTC

Description Tereza Cerna 2016-04-28 13:23:10 UTC
Preupgrade print message "Inappropriate ioctl for device" to stderr when output is redirect to file.

# preupg <<<y >preupg.out 2>preupg.err

# tail preupg.err
stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device
stty: standard input: Inappropriate ioctl for device

# rpm -q preupgrade-assistant
preupgrade-assistant-2.1.6-3.el6.noarch

Comment 2 Alois Mahdal 2016-08-03 22:46:32 UTC
*** Bug 1363911 has been marked as a duplicate of this bug. ***

Comment 3 Alois Mahdal 2016-08-04 00:12:53 UTC
Turns out this is caused by the STDIN redirection, not the STDOUT; i.e.

    preupg --force >out 2>err

works fine, but

    preupg <<<y

suffers from this.

Comment 5 Michal Bocek 2019-07-01 15:35:04 UTC
Closing this bugzilla as the component is under a maintenance mode in which the maintainers are going to fix only critical bugs. If you consider the bugzilla critical, feel free to reopen the bug with an explanation.

Comment 6 Petr Stodulka 2019-07-01 15:45:40 UTC
This is already fixed in latest build.


Note You need to log in before you can comment on or make changes to this bug.