Red Hat Bugzilla – Bug 499367
mount.ecrytfs hangs when used with wrong/missing stdin
Last modified: 2009-09-02 05:57:15 EDT
Description of problem:
when mount is performed in cron or other way, where stdin is missing (or can't interact with stdout), mount hangs in endless loop.
When verbosity=0 is used (preventing mount helper's questions), it errors out where default values should be used.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.mount -t ecryptfs ~/testecfs/ ~/testecfs/ -o key=passphrase:passphrase_passwd=1234,ecryptfs_cipher=aes,ecryptfs_key_bytes=16,verbosity=0 </dev/null
a)with verbosity=0 : errors out: 'invalid value'
b)without verbosity=0: hangs
a)with verbosity=0 : default values are used (no questions)
b)without verbosity=0 : errors out with 'invalid value' (/dev/null is permanently giving wrong answers)
Created attachment 342634 [details]
use default values with verbosity=0, repeat question 5 times at most (without verbosity=0)
Created attachment 345874 [details]
fix eof handling
both patches are required
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.