Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 27306 - another /dev/stdout permission fix
Summary: another /dev/stdout permission fix
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Nicholas Jones (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-25 10:42 UTC by Max Kalika (RETIRED)
Modified: 2011-10-30 22:18 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild.sh-2.0.49-stdout_permission_fix.patch (ebuild.sh-2.0.49-stdout_permission_fix.patch,424 bytes, patch)
2003-08-25 10:44 UTC, Max Kalika (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Max Kalika (RETIRED) gentoo-dev 2003-08-25 10:42:35 UTC
Similar to bug 25472, the attached fixes the permissions for the has() function 
in ebuild.sh.
Comment 1 Max Kalika (RETIRED) gentoo-dev 2003-08-25 10:44:23 UTC
Created attachment 16607 [details, diff]
ebuild.sh-2.0.49-stdout_permission_fix.patch
Comment 2 Georgi Georgiev 2003-09-19 08:13:04 UTC
Why not simply look in /proc/self/fd instead of /dev/fd? This way systems without a running devfsd would also work fine.
Comment 3 Caleb Tennis (RETIRED) gentoo-dev 2003-09-30 13:25:23 UTC
Agreed.  I'd like to see this fixed in portage as well.
Comment 4 solar (RETIRED) gentoo-dev 2003-09-30 13:58:51 UTC
in my local ebuild.sh I simply do 
[ -w /dev/stdout ] && tty --quiet < /dev/stdout || echo "${x}"
works like a charm.
Comment 5 Nicholas Jones (RETIRED) gentoo-dev 2003-09-30 15:37:32 UTC
Modified and included.

Per-Ebuild logging breaks this benefit, I just realized... but it
helps to keep depend info clean, which is good.