Commit graph

10 commits

Author SHA1 Message Date
joerg
c746cd1e56 In ls.c, use d_type field only, if DTTOIF is defined as well.
In paste.c, do real boundary checks and consider NULL FILE pointers as
closed files. This replaces use of global dummy FILEs, which is not
possible on DragonFly, since FILE is incompletly.
In configure, include stdio.h when checking for __fpending, since
the prototype is defined there on DragonFly.
2006-01-09 22:45:08 +00:00
tron
a8e8d82674 Change version check to figure out whether NetBSD supports the statvfs(2)
systen call. We now assumes that it only exists in NetBSD 2.99.x and
newer. This will avoid build problems under the upcoming NetBSD 2.1
release. Mark this package as unusable for NetBSD-2.0[D-H]-* (a few
very old NetBSD-current versions which have statvfs(2) but a version
number smaller than 2.99.x).
2005-08-28 09:07:21 +00:00
tv
c9a384ec9a Make build and run on Interix:
* Add check for sync(2) and setgroups(3), and don't use these if they
  don't exist on the host.

* Interix has a ... Special ... way of doing the "su" thing.

* Implement Interix-specific portion of mountlist.c.
2005-03-21 14:44:08 +00:00
tron
00cc25d2c4 Make this build under NetBSD 2.0D and above with statvfs(2).
This fixes PR pkg/25475 Kibum Han.
2004-05-18 19:07:57 +00:00
recht
071dd1da05 update to 5.2.1
** Bug fixes

  mv could mistakenly fail to preserve hard links when moving two
  or more arguments between partitions.

  `cp --sparse=always F /dev/hdx' no longer tries to use lseek to create
  holes in the destination.

  nohup now sets the close-on-exec flag for its copy of the stderr file
  descriptor.  This avoids some nohup-induced hangs.  For example, before
  this change, if you ran `ssh localhost', then `nohup sleep 600 </dev/null &',
  and then exited that remote shell, the ssh session would hang until the
  10-minute sleep terminated.  With the fixed nohup, the ssh session
  terminates immediately.

  `expr' now conforms to POSIX better:

    Integers like -0 and 00 are now treated as zero.

    The `|' operator now returns 0, not its first argument, if both
    arguments are null or zero.  E.g., `expr "" \| ""' now returns 0,
    not the empty string.

    The `|' and `&' operators now use short-circuit evaluation, e.g.,
    `expr 1 \| 1 / 0' no longer reports a division by zero.

** New features

  `chown user.group file' now has its traditional meaning even when
  conforming to POSIX 1003.1-2001, so long as no user has a name
  containing `.' that happens to equal `user.group'.
2004-03-29 09:22:50 +00:00
recht
090d17952c update to 5.2.0
many fixes/new features, among them:

- nohup now always exits with status 127 when it finds an error,
  as POSIX requires; formerly it sometimes exited with status 1.

- Several programs (including cut, date, dd, env, hostname, nl, pr,
  stty, and tr) now always exit with status 1 when they find an error;
  formerly they sometimes exited with status 2.

- chgrp and chown now accept POSIX-mandated -L, -H, and -P options

- du now accepts -P (--no-dereference), for compatibility with du
  of NetBSD and for consistency with e.g., chown and chgrp

- date accepts a new option --rfc-2822, an alias for --rfc-822.

- `sha1sum --check' now accepts the BSD format for SHA1 message digests
  in addition to the BSD format for MD5 ones.

- md5sum --check now accepts the output of the BSD md5sum program, e.g.,
  MD5 (f) = d41d8cd98f00b204e9800998ecf8427e

- date -d DATE can now parse a DATE string like May-23-2003

- chown: `.' is no longer recognized as a separator in the OWNER:GROUP
  specifier on POSIX 1003.1-2001 systems.  If chown *was not* compiled
  on such a system, then it still accepts `.', by default.  If chown
  was compiled on a POSIX 1003.1-2001 system, then you may enable the
  old behavior by setting _POSIX2_VERSION=199209 in your environment.

(see NEWS for a complete list)
2004-02-22 21:32:18 +00:00
tron
01a1a2de88 Recreate patch because Mac OS X's patch refuses to apply it. 2003-11-22 15:59:24 +00:00
tron
494f62f029 Don't use "stdbool.h" because NetBSD 1.6 and 1.6.x (and probably other
platforms) don't have it.
2003-11-05 11:54:47 +00:00
recht
0c58bd1726 Fix two security issues:
1.)
An integer overflow in ls in the fileutils or coreutils packages may allow
local users to cause a denial of service or execute arbitrary code via a
large -w value, which could be remotely exploited via applications that use
ls, such as wu-ftpd.

2.)
ls in the fileutils or coreutils packages allows local users to consume a
large amount of memory via a large -w value, which can be remotely exploited
via applications that use ls, such as wu-ftpd.

See
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2003-0853
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2003-0854
and the original report
http://www.guninski.com/binls.html
for details.

Patches taken from Red Hat's Security Advisory RHSA-2003:309-01.

reported by reed@
bump PKGREVISION
2003-11-05 00:05:06 +00:00
wiz
ec767a3f50 Initial import of coreutils-5.0, from Marc Recht via pkgsrc-wip.
The GNU Core Utilities are the basic file, shell and text manipulation
utilities of the GNU operating system. These are the core utilities which
are expected to exist on every operating system.

Previously these utilities were offered as three individual sets of GNU
utilities, fileutils, shellutils, and textutils. Those three have been
combined into a single set of utilities called the coreutils.
2003-04-10 13:18:36 +00:00