Notes |
(0002547)
phire
07-03-07 00:37
|
I did some checking of the source code, Seams the problem come from Revision 18061:
more: do not mess with "/dev/console" (!);
fill whole 1st screen (was "screen sans one line");
fall back to cat if redirected or no ctty
less: fall back to cat if no ctty (was exiting)
resize: cosmetics
uClibc (or at least the version I have) seams to fail to open CURRENT_TTY here:
(line 1333 in miscutils/less.c)
kbd_fd = open(CURRENT_TTY, O_RDONLY);
if (kbd_fd < 0)
return bb_cat(argv); |
|
(0002548)
phire
07-03-07 01:00
|
I changed it from open to xopen (which is was before) and it kindly informed me:
less: can't open '/dev/tty': No such file or directory
I was in the process of working out how to mount the root file system when I came across this problem.
I think its better to inform me that I have a problem, rather than falling back to cat. |
|
(0002549)
vda
07-03-07 03:26
|
If less or more cannot open /dev/tty, they think that they are run in a session without controlling tty (for such session opening /dev/tty fails with ENXIO: open("/dev/tty", O_RDONLY|O_LARGEFILE) = -1 ENXIO (No such device or address)).
But in your case, you simply don't have /dev/tty node created, period. Just create it. Should be like this:
# ls -l /dev/tty
crw-rw-rw- 1 root root 5, 0 Jun 29 19:51 /dev/tty |
|