Bob Proulx <b...@proulx.com> writes:

> Sanjay Kumar wrote:
>> [r...@omvm6 ~]# su poo -c "cat /dev/tty"
>> cat: /dev/tty: No such device or address
>> ...
>> strace is showing below:
>> open("/dev/tty", O_RDONLY)              = -1 ENXIO (No such device or 
>> address)
>
> The su command appears to be working properly.  The problem shown
> above is that your system is missing the /dev/tty device node.

If the file were missing, you would get ENOENT.  ENXIO only means that
the underlying device does not exist.  That can either mean that
/dev/tty has the wrong device address (major/minor device number), or
that the process has no controlling terminal.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to