freebsd-skq/bin
Bruce Evans e1d071dbfd Removed the broken code which claimed to lose the set[ug]id bits in
the !(pflag && setfile()) case for regular files unless the copy is
owned by the same user and group.  These bits have already been lost
(or never gained) in the correct way.  The code didn't actually lose
the bits; it depended on them being lost already (apparently in all
cases) and attempted to gain them as necessary, but it often gained
them (and sometimes collateral bits) when wrong:
- pflag && setfile() == 0 case (i.e., for a successful cp -p):
  setfile() copies all the attributes as correctly as possible (as
  specified by POSIX), and we sometimes messed up the up the mode by
  setting it again.  Also, if the file is immutable, then setting the
  mode again gave spurious errors (PR 20646).
- !pflag case.  If the target is created, POSIX requires it to not
  have the set[ug]id bits, but we sometimes copied them from the source.
  If the target already exists, POSIX requires its mode to be unchanged,
  but we sometimes copied the whole mode from the source.

PR:		20646
MFC after:	4 weeks
2001-06-11 13:57:54 +00:00
..
cat Prepare for mdoc(7)NG. 2000-12-15 17:37:31 +00:00
chflags Follow symbolic links named as command line arguments if run without -R. 2001-05-28 12:58:10 +00:00
chio Removed -I${.CURDIR}/.../sys from CFLAGS. 2001-05-18 13:41:42 +00:00
chmod Fixed the bug from the previous revision. 2001-05-31 11:47:20 +00:00
cp Removed the broken code which claimed to lose the set[ug]id bits in 2001-06-11 13:57:54 +00:00
csh Use new locale names 2001-06-10 15:28:39 +00:00
date Simplify, with the power of new mdoc(7). 2001-06-09 11:20:31 +00:00
dd mdoc(7) police: use the new features of the Nm macro. 2000-11-20 11:39:41 +00:00
df Add parens to get the cast that was meant in previous commit. 2001-06-05 21:55:57 +00:00
domainname Make this pass WARNS=2 and BDECFLAGS 2001-05-20 04:37:28 +00:00
echo Make this pass WARNS=2 and BDECFLAGS 2001-05-20 04:37:28 +00:00
ed Correct a spelling nit (a -> an). 2001-06-04 23:33:02 +00:00
expr Fix warnings to compile with WARNS=2 on i386 and alpha 2001-05-26 20:45:25 +00:00
getfacl Silence warnings on alpha. Unfortunately we can't add WARNS to this 2001-05-20 04:47:55 +00:00
hostname Silence WARNS=2 and BDECFLAGS on i386 and alpha 2001-05-20 04:54:15 +00:00
kenv kenv(1) first appeared in FreeBSD 4.1.1, not FreeBSD 5.0. 2000-11-23 11:21:35 +00:00
kill Silence WARNS=2 and BDECFLAGS on the i386 and alpha 2001-05-20 04:52:37 +00:00
ln Use PATH_MAX in preference to MAXPATHLEN. 2001-05-29 17:27:56 +00:00
ls Drop support for -DRELEASE_BUILD_FIXIT and -DCRUNCHED_BINARY in 2001-04-03 13:34:35 +00:00
mkdir Silence WARNS=2 and BDECFLAGS except for stupid mode_t warnings. 2001-05-20 05:49:20 +00:00
mv Use PATH_MAX in preference to MAXPATHLEN. 2001-05-29 18:20:36 +00:00
pax Minor comment fix 2001-05-30 03:25:45 +00:00
ps Correct a typo. 2001-06-08 04:41:21 +00:00
pwd PATH_MAX in preference to MAXPATHLEN. 2001-05-30 03:28:29 +00:00
rcp Fixed two bugs, first not allowing '.' as a valid login name character 2001-05-30 16:19:13 +00:00
realpath Move the realpath(1) birth day from FreeBSD 5.0 to FreeBSD 4.3. 2001-02-22 07:29:40 +00:00
rm mdoc(7) police: use the default ``file ...'' feature of the .Ar macro. 2001-02-13 09:56:35 +00:00
rmail MAN[1-9] -> MAN. 2001-03-27 10:03:10 +00:00
rmdir Silence WARNS=2 and BDECFLAGS on alpha and i386 2001-05-20 05:10:04 +00:00
setfacl Silence WARNS=2 and BDECFLAGS on alpha and i386 2001-05-20 05:13:21 +00:00
sh Fix how /bin/sh handles 'for' and 'case' statements when it is called to do 2001-06-01 00:07:09 +00:00
sleep Silence WARNS=2 and BDECFLAGS on alpha and i386 2001-05-20 05:13:21 +00:00
stty Silence WARNS=2 and BDECFLAGS on alpha and i386 2001-05-20 05:25:37 +00:00
sync Spelling police: insure -> ensure 2001-05-24 03:52:32 +00:00
test Silence WARNS=2 and BDECFLAGS on alpha and i386 2001-05-20 05:33:53 +00:00
Makefile o Enable getfacl(1) and setfacl(1) 2001-03-19 18:09:56 +00:00
Makefile.inc $Id$ -> $FreeBSD$ 1999-08-27 23:15:48 +00:00