Bug 1226591

Summary: [abrt] rpmconf: rpmconf.py:102:flush_input:termios.error: (25, 'Inappropriate ioctl for device')
Product: [Fedora] Fedora Reporter: René Harder Olsen <rehol3>
Component: rpmconfAssignee: Miroslav Suchý <msuchy>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: msuchy, xjakub
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/b67b9215dc04ee9fdcea54af9442fe11845254dd
Whiteboard: abrt_hash:845761677efa522d2fad1769b1c9f19fe003ebfa
Fixed In Version: rpmconf-1.0.8-1.fc23 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-06-01 09:13:11 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: environ none

Description René Harder Olsen 2015-05-30 23:33:32 UTC
Version-Release number of selected component:
rpmconf-1.0.7-1.fc22

Additional info:
reporter:       libreport-2.5.1
cmdline:        /usr/bin/python3 /usr/sbin/rpmconf -a
executable:     /usr/sbin/rpmconf
kernel:         4.0.4-301.fc22.x86_64
runlevel:       N 5
type:           Python3
uid:            1000

Truncated backtrace:
rpmconf.py:102:flush_input:termios.error: (25, 'Inappropriate ioctl for device')

Traceback (most recent call last):
  File "/usr/sbin/rpmconf", line 63, in <module>
    main()
  File "/usr/sbin/rpmconf", line 60, in main
    rconf.run()
  File "/usr/lib/python3.4/site-packages/rpmconf/rpmconf.py", line 88, in run
    self._handle_package(pkg_hdr)
  File "/usr/lib/python3.4/site-packages/rpmconf/rpmconf.py", line 256, in _handle_package
    tmp.format(conf_file, "rpmsave"))
  File "/usr/lib/python3.4/site-packages/rpmconf/rpmconf.py", line 321, in _handle_rpmsave
    option = self.flush_input("Your choice: ").upper()
  File "/usr/lib/python3.4/site-packages/rpmconf/rpmconf.py", line 102, in flush_input
    tcflush(sys.stdin, TCIOFLUSH)
termios.error: (25, 'Inappropriate ioctl for device')

Local variables in innermost frame:
question: 'Your choice: '

Comment 1 René Harder Olsen 2015-05-30 23:33:35 UTC
Created attachment 1032706 [details]
File: backtrace

Comment 2 René Harder Olsen 2015-05-30 23:33:37 UTC
Created attachment 1032707 [details]
File: environ

Comment 3 Miroslav Suchý 2015-06-01 09:00:54 UTC
Fixed in commit:
* e3c0a01  1226591 - do not flush stdin, when it is not TTY