Browse Source

upgrading package: coreutils 5.0.91 -> 5.1.1

master
parent
commit
b12f3df0c4
  1. 61
      coreutils/coreutils.patch
  2. 4
      coreutils/coreutils.spec

61
coreutils/coreutils.patch

@ -65,64 +65,3 @@
#include "system.h"
http://www.guninski.com/binls.html
Workaround to defeat resource starvation using "ls -W hugenumber"
taken from Conectiva Updates <secure@conectiva.com.br>, CLA-2003:768
Index: src/ls.c
--- src/ls.c.orig 2003-07-27 08:33:36.000000000 +0200
+++ src/ls.c 2003-10-23 13:45:46.000000000 +0200
@@ -180,6 +180,8 @@
#define ID_LENGTH_MAX \
MAX (LOGIN_NAME_MAX - 1, LONGEST_HUMAN_READABLE)
+#define COLUMNS_MAX 1024
+
enum filetype
{
unknown DT_INIT (DT_UNKNOWN),
@@ -1316,7 +1318,7 @@
{
long int tmp_long;
if (xstrtol (p, NULL, 0, &tmp_long, NULL) == LONGINT_OK
- && 0 < tmp_long && tmp_long <= INT_MAX)
+ && 0 < tmp_long && tmp_long <= COLUMNS_MAX)
{
line_length = (int) tmp_long;
}
@@ -1334,7 +1336,7 @@
struct winsize ws;
if (ioctl (STDOUT_FILENO, TIOCGWINSZ, &ws) != -1 && ws.ws_col != 0)
- line_length = ws.ws_col;
+ line_length = MIN(ws.ws_col, COLUMNS_MAX);
}
#endif
@@ -1347,7 +1349,7 @@
{
long int tmp_long;
if (xstrtol (p, NULL, 0, &tmp_long, NULL) == LONGINT_OK
- && 0 <= tmp_long && tmp_long <= INT_MAX)
+ && 0 <= tmp_long && tmp_long <= COLUMNS_MAX)
{
tabsize = (int) tmp_long;
}
@@ -1470,7 +1472,7 @@
{
long int tmp_long;
if (xstrtol (optarg, NULL, 0, &tmp_long, NULL) != LONGINT_OK
- || tmp_long <= 0 || tmp_long > INT_MAX)
+ || tmp_long <= 0 || tmp_long > COLUMNS_MAX)
error (EXIT_FAILURE, 0, _("invalid line width: %s"),
quotearg (optarg));
line_length = (int) tmp_long;
@@ -1544,7 +1546,7 @@
{
long int tmp_long;
if (xstrtol (optarg, NULL, 0, &tmp_long, NULL) != LONGINT_OK
- || tmp_long < 0 || tmp_long > INT_MAX)
+ || tmp_long < 0 || tmp_long > COLUMNS_MAX)
error (EXIT_FAILURE, 0, _("invalid tab size: %s"),
quotearg (optarg));
tabsize = (int) tmp_long;

4
coreutils/coreutils.spec

@ -32,8 +32,8 @@ Packager: The OpenPKG Project
Distribution: OpenPKG [BASE]
Group: Utility
License: GPL
Version: 5.0.91
Release: 20031023
Version: 5.1.1
Release: 20040117
# package options
%option with_legacy no

Loading…
Cancel
Save