Bug 56291
Summary: | up2date STDERR redirection w/ BASH broken. Sorta. | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Ali-Reza Anghaie <ali> |
Component: | up2date | Assignee: | Adrian Likins <alikins> |
Status: | CLOSED RAWHIDE | QA Contact: | Ben Levenson <benl> |
Severity: | low | Docs Contact: | |
Priority: | medium | ||
Version: | 7.2 | CC: | shishz |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2002-03-07 00:03:18 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: |
Description
Ali-Reza Anghaie
2001-11-15 03:54:27 UTC
BTW, that is not "jeremy" its supposed to be "katzj" .. just in case you're wondering. I guess up2date (or python) uses fdup() or the likes on stderr, and writes the error messages there, so redirecting just fd 2 isn't sufficient. Bash does redirect fd 2 correctly in all test cases I've tried Hmm. Ok, well I guess I have some learning to do. I'm completely lost as to what you're talking about. If you meant up2date or python created "3" I had already tried: [root@xxx root]# up2date -l 3>&1 1>&2 2>&3 | mail -s "Test" root Null message body; hope that's ok As well. And why would SSH handle it ok though? Like you, any other redirect I tried (and I tried tons) worked fine. Thanks, and I already found a reference on fdup() so I'll be learning shortly. can you check to see if your running it out of /usr/sbin or /usr/bin? /usr/bin/up2date is a symlink to a console helper, which is an app that execs up2date again, and might be causing the problem. /usr/bin ... and you're right, using /usr/sbin the behavior doesn't happen. BUT, the PATH is the same whether I come in w/ SSH or not so I'm still a little bewildered as to that additional functionality or what-not. { sigh... } ~I~ would say it's still a bug of sorts. Or at least should be a side-not in the MAN page. Thanks much! This behaviours is supposed to get fixed with the next release of the userhelper utility. Versions of usermode 1.5 or higher should fix this issue, so I'm closing this bug with resolution RAWHIDE. |