hush/util-linux
Eric Andersen 97310d0253 Brian Pomerantz writes:
I've noticed a bug in the "autowidth" feature more, and is probably in
others.  The call to the function get_terminal_width_height() passes
in a file descriptor but that file descriptor is never used, instead
the ioctl() is called with 0.  In more_main() the call to
get_terminal_width_height() passes 0 as the file descriptor instead of
fileno(cin).  This isn't a problem when you more a file (e.g. "more
/etc/passwd") but when you pipe a file to it (e.g. "cat /etc/passwd |
more") the size of the terminal cannot be determined because file
descriptor 0 is not a terminal.  The fix is simple, I've attached a
patch for more.c and get_terminal_width_height.c.


BAPper
2004-03-23 23:15:36 +00:00
..
Config.in Remove trailing whitespace. Update copyright to include 2004. 2004-03-15 08:29:22 +00:00
dmesg.c Remove trailing whitespace. Update copyright to include 2004. 2004-03-15 08:29:22 +00:00
fbset.c Remove trailing whitespace. Update copyright to include 2004. 2004-03-15 08:29:22 +00:00
fdflush.c Major coreutils update. 2003-03-19 09:13:01 +00:00
fdformat.c Patch from Tito, reduce size, merge functions that are only used once. 2004-01-20 12:57:18 +00:00
fdisk.c Remove trailing whitespace. Update copyright to include 2004. 2004-03-15 08:29:22 +00:00
freeramdisk.c Remove trailing whitespace. Update copyright to include 2004. 2004-03-15 08:29:22 +00:00
fsck_minix.c Remove trailing whitespace. Update copyright to include 2004. 2004-03-15 08:29:22 +00:00
getopt.c Major coreutils update. 2003-03-19 09:13:01 +00:00
hexdump.c Major coreutils update. 2003-03-19 09:13:01 +00:00
hwclock.c Some corrections from vodz: 2004-03-22 21:27:39 +00:00
losetup.c Lars Ekman writes: 2003-07-30 08:55:59 +00:00
Makefile Remove trailing whitespace. Update copyright to include 2004. 2004-03-15 08:29:22 +00:00
Makefile.in Remove trailing whitespace. Update copyright to include 2004. 2004-03-15 08:29:22 +00:00
mkfs_minix.c Remove trailing whitespace. Update copyright to include 2004. 2004-03-15 08:29:22 +00:00
mkswap.c Patch from David Meggy to make the swap default to the new version if no 2003-10-31 02:04:18 +00:00
more.c Brian Pomerantz writes: 2004-03-23 23:15:36 +00:00
mount.c Remove trailing whitespace. Update copyright to include 2004. 2004-03-15 08:29:22 +00:00
nfsmount.c Remove trailing whitespace. Update copyright to include 2004. 2004-03-15 08:29:22 +00:00
nfsmount.h Fixup use of 'u_int' to instead use 'unsigned int' 2004-01-30 22:56:20 +00:00
pivot_root.c Remove trailing whitespace. Update copyright to include 2004. 2004-03-15 08:29:22 +00:00
rdate.c Stephane Billiart writes: 2004-01-18 18:18:33 +00:00
swaponoff.c Remove trailing whitespace. Update copyright to include 2004. 2004-03-15 08:29:22 +00:00
umount.c Remove trailing whitespace. Update copyright to include 2004. 2004-03-15 08:29:22 +00:00