freebsd-dev/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
chflags Follow symbolic links named as command line arguments if run without -R. 2001-05-28 12:58:10 +00:00
chio
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
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
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
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
rm
rmail
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
Makefile.inc