bug#12954: Differences between 'su' version give different results

2012-11-21 Thread ybronhei
Differences between 'su' version give different results in the following shell script: # !/bin/sh func() { su user > /dev/null 2>&1 << EOF echo >> /tmp/b EOF } if func; then echo "access" else echo "no access" fi over fedora 17 I run - coreutils 8.15-8: if the file is not accessible by

bug#12954: Fix the 'su' bug for rhel6.3

2012-11-22 Thread ybronhei
Hey, I would like to have a fix for that issue (as it was fixed in newer versions), I want to merge it to the current version of rhel6.3 (coreutils-8.4-19.el6.x86_64) Please update me. Thanks. -- Yaniv Bronhaim. RedHat, Israel 09-7692289 054-7744187