Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1954693

Summary: rlwrap compiled as debug, causing /tmp/rlwrap.debug to be written
Product: [Fedora] Fedora EPEL Reporter: Christian Wissel <Christian.Wissel>
Component: rlwrapAssignee: Michel Alexandre Salim <michel>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: epel8CC: michel, scott.rochford
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Christian Wissel 2021-04-28 15:34:08 UTC
Description of problem:
rlwrap has a built-in debug log, IF compiled with debug enabled, as describe here https://github.com/hanslub42/rlwrap/blob/master/BUGS
This causes rlwrap to write a debug log in /tmp/rlwrap.debug on invocation.

This log is not deleted on exit and can't be written to by other users who might be running rlwrap, due to default umask of 0022 creating the file with 0644 permissions.

Version-Release number of selected component (if applicable):
rlwrap-0.44-1.el8.x86_64

How reproducible:
Always

Steps to Reproduce:
1. invoke rlwrap as user 1
2. invoke rlwrap as user 2

Actual results:
rlwrap: error: Cannot open  debug log /tmp/rlwrap.debug for appending: Permission denied


Expected results:
no error

Additional info:
Possible workarounds:
- Change umask to 0002, if users are in a common group
- Leave the debug log in place and change its permissions to 0664 or 0666.