Bug 86514
| Summary: | failed redirect gives ENOENT, not EPERM | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Retired] Red Hat Public Beta | Reporter: | Kjetil T. Homme <kjetilho> | ||||||
| Component: | bash | Assignee: | Tim Waugh <twaugh> | ||||||
| Status: | CLOSED RAWHIDE | QA Contact: | Ben Levenson <benl> | ||||||
| Severity: | medium | Docs Contact: | |||||||
| Priority: | medium | ||||||||
| Version: | phoebe | ||||||||
| Target Milestone: | --- | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | i686 | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2003-03-25 18:04:52 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: |
|
||||||||
I don't see this. Sure there's no file of that name? of course I'm sure, and that is actually what bash tells me :-) (btw, it's annoying that you close the bug as the very first response. use MORE INFO NEEDED or something.) Well, I need more information than I have. :-) Show me the strace output. Created attachment 90711 [details]
strace of bash run exhibiting problem
Created attachment 90712 [details]
ltrace of bash run exhibiting problem
Oops, I misread the original comment, sorry! I see the issue now. Fixed package is bash-2.05b-23. |
From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030206 Description of problem: the code has been changed to do open("/etc/nosuchfile", O_WRONLY|O_TRUNC|O_LARGEFILE) after a failed open("/etc/nosuchfile", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) this results in errno being EPERM, which is highly confusing, at least to me :-) Version-Release number of selected component (if applicable): bash-2.05b-20 How reproducible: Always Steps to Reproduce: as a normal user echo hiya > /etc/nosuchfile Actual Results: bash: /etc/nosuchfile: No such file or directory Expected Results: bash: /etc/nosuchfile: Permission denied Additional info: