Hi,
su command is failing with below error on RHEL5. We are using
coreutils-5.97-14.el5
[r...@omvm6 ~]# su --version
su (GNU coreutils) 5.97
[r...@omvm6 ~]# su poo -c "cat /dev/tty"
cat: /dev/tty: No such device or address
strace is showing below:
.
.
fstat(3, {st_mode=S_IFREG|0644, st_size=56426016, ...}) = 0
mmap(NULL, 56426016, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2b37c6dff000
close(3) = 0
fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0
open("/dev/tty", O_RDONLY) = -1 ENXIO (No such device or
address)
write(2, "cat: ", 5cat: ) = 5
write(2, "/dev/tty", 8/dev/tty) = 8
open("/usr/share/locale/locale.alias", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=2528, ...}) = 0
.
.
.
The above command is working on RHEL4 with coreutils-5.2.1-31.7
Please let us know the fix available or not.
Thanks & Regards,
Sanjay Kumar
Sr. Software Engg
Symantec Corporation
www.symantec.com <http://www.symantec.com/>
Office: (020) 4075 4020
Mobile: 919881061153
[email protected]
<<image001.gif>>
<<image002.gif>>
_______________________________________________ Bug-coreutils mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-coreutils
