The NetBSD Project

CVS log for src/bin/cp/cp.c

[BACK] Up to [cvs.NetBSD.org] / src / bin / cp

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.62 / (download) - annotate - [select for diffs], Fri May 22 14:54:30 2020 UTC (3 years ago) by christos
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, HEAD
Changes since 1.61: +3 -3 lines
Diff to previous 1.61 (colored)

fix reversed test.

Revision 1.61 / (download) - annotate - [select for diffs], Sun May 17 23:34:11 2020 UTC (3 years ago) by christos
Branch: MAIN
Changes since 1.60: +4 -2 lines
Diff to previous 1.60 (colored)

No ACL support for install media (SMALLPROG)

Revision 1.60 / (download) - annotate - [select for diffs], Sat May 16 18:31:45 2020 UTC (3 years ago) by christos
Branch: MAIN
Changes since 1.59: +19 -5 lines
Diff to previous 1.59 (colored)

Add ACL support for FFS. From FreeBSD.

Revision 1.59.16.2 / (download) - annotate - [select for diffs], Tue Apr 21 19:37:30 2020 UTC (3 years, 1 month ago) by martin
Branch: phil-wifi
Changes since 1.59.16.1: +0 -0 lines
Diff to previous 1.59.16.1 (colored) to branchpoint 1.59 (colored) next main 1.60 (colored)

Ooops, restore accidently removed files from merge mishap

Revision 1.59.16.1, Tue Apr 21 18:41:02 2020 UTC (3 years, 1 month ago) by martin
Branch: phil-wifi
Changes since 1.59: +2 -2 lines
FILE REMOVED

Sync with HEAD

Revision 1.58.2.1 / (download) - annotate - [select for diffs], Sat Aug 27 13:25:23 2016 UTC (6 years, 9 months ago) by bouyer
Branch: netbsd-6
Changes since 1.58: +3 -3 lines
Diff to previous 1.58 (colored) next main 1.59 (colored)

Pull up following revision(s) (requested by uwe in ticket #1372):
	bin/cp/cp.c: revision 1.59
The '-i' flag should work regardless of whether the standard input is
a terminal.  The Open Group notes this historic behavior and correctly
notes that it doesn't make much sense.  Note also, that mv(1) has
always respected its '-i' regardless of whether the standard input is
a terminal.
From Timo Buhrmester.

Revision 1.58.20.1 / (download) - annotate - [select for diffs], Sun Mar 6 18:44:10 2016 UTC (7 years, 2 months ago) by martin
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1
Changes since 1.58: +3 -3 lines
Diff to previous 1.58 (colored) next main 1.59 (colored)

Pull up following revision(s) (requested by uwe in ticket #1131):
	bin/cp/cp.c: revision 1.59
The '-i' flag should work regardless of whether the standard input is
a terminal.  The Open Group notes this historic behavior and correctly
notes that it doesn't make much sense.  Note also, that mv(1) has
always respected its '-i' regardless of whether the standard input is
a terminal.
From Timo Buhrmester.

Revision 1.59 / (download) - annotate - [select for diffs], Sat Mar 5 19:48:55 2016 UTC (7 years, 2 months ago) by uwe
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, is-mlppp-base, is-mlppp, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: phil-wifi
Changes since 1.58: +3 -3 lines
Diff to previous 1.58 (colored)

The '-i' flag should work regardless of whether the standard input is
a terminal.  The Open Group notes this historic behavior and correctly
notes that it doesn't make much sense.  Note also, that mv(1) has
always respected its '-i' regardless of whether the standard input is
a terminal.

From Timo Buhrmester.

Revision 1.57.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:01:35 2012 UTC (11 years, 1 month ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.57: +15 -5 lines
Diff to previous 1.57 (colored) next main 1.58 (colored)

sync with head

Revision 1.58 / (download) - annotate - [select for diffs], Wed Jan 4 15:58:37 2012 UTC (11 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, tls-maxphys-base, tls-maxphys, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-7-base, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, khorben-n900, agc-symver-base, agc-symver
Branch point for: netbsd-7, netbsd-6
Changes since 1.57: +15 -5 lines
Diff to previous 1.57 (colored)

Add siginfo support from Daniel Loffgren.

Revision 1.57 / (download) - annotate - [select for diffs], Thu Aug 18 08:11:58 2011 UTC (11 years, 9 months ago) by manu
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base
Branch point for: yamt-pagecache
Changes since 1.56: +2 -9 lines
Diff to previous 1.56 (colored)

Remove warning about system extended attributes that cannot be copied, since
it will always be displayed when an unprivilegied user moves files across
filesystems (mv(1) uses cp -p in that case). After all, there is no warning
that we loose a setuid bit during a move or copy, so this makes sense.

Fixes bin/45259

Revision 1.56 / (download) - annotate - [select for diffs], Wed Aug 3 04:11:15 2011 UTC (11 years, 9 months ago) by manu
Branch: MAIN
Changes since 1.55: +9 -2 lines
Diff to previous 1.55 (colored)

Make cp -p and mv preverve extended attributes, and complain if they cannot.

Also introduce library functions for copying extended attributes from one
file to another:
- extattr_copy_file, extattr_copy_fd, extattr_copy_link, with FreeBSD style,
  where a namespace is to be supplied
- cpxattr, fcpxattr, lcpxattr, with Linux style, where all namespaces
  accessible to the caller are copied, and the others are silently ignored.

Revision 1.54.2.1 / (download) - annotate - [select for diffs], Tue Feb 8 16:18:27 2011 UTC (12 years, 3 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.54: +7 -4 lines
Diff to previous 1.54 (colored) next main 1.55 (colored)

Sync with HEAD

Revision 1.55 / (download) - annotate - [select for diffs], Sun Feb 6 12:37:49 2011 UTC (12 years, 3 months ago) by darcy
Branch: MAIN
CVS Tags: cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base
Changes since 1.54: +7 -4 lines
Diff to previous 1.54 (colored)

Add -l option to copy a tree as links.
Non-standard option similar to Gnutools cp(1)
Approved by core.

Revision 1.54 / (download) - annotate - [select for diffs], Tue Dec 21 20:56:01 2010 UTC (12 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231
Branch point for: bouyer-quota2
Changes since 1.53: +9 -3 lines
Diff to previous 1.53 (colored)

Add -a archive flag. from Aleksey Cheusov

Revision 1.53 / (download) - annotate - [select for diffs], Thu Oct 8 20:36:41 2009 UTC (13 years, 7 months ago) by pooka
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.52: +26 -13 lines
Diff to previous 1.52 (colored)

Fix the "dne" handling and chmod behaviour properly: values of dne
need to be on a stack instead of being a single variable since
directories are processed depth-first.  Otherwise dne randomly
depends on the previously processed entry.

This fixes both chmod of non-created directories (they used to be
chmod'd even when not created if their last child element did not
exist in the target subtree) and a "foo exists" bug exposed by my
last commit which removed directory sorting.

all regression tests passed

Revision 1.52 / (download) - annotate - [select for diffs], Tue Sep 29 13:30:17 2009 UTC (13 years, 8 months ago) by pooka
Branch: MAIN
Changes since 1.51: +3 -30 lines
Diff to previous 1.51 (colored)

Remove fts sorting.  It was originally put there to copy files
before directories since files (usually) are in the same cylinder
group and subdirectories aren't.  However, this mostly changed with
the new ffs dirpref algorithm in 2001.

No sorting has two effects:
1) copy appears to be somewhat faster (e.g. on my laptop cp'ing build
   objdir to tmpfs is 7% faster after the change)
2) source file parameters no longer get randomly shuffled due to
   fts doing an unstable sort of them.  this means that
   "cp 1 2 3 4 dest/" will copy the files in that order instead
   of e.g. 3 4 1 2.

Revision 1.48.12.2 / (download) - annotate - [select for diffs], Thu Sep 18 04:27:40 2008 UTC (14 years, 8 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.48.12.1: +4 -4 lines
Diff to previous 1.48.12.1 (colored) to branchpoint 1.48 (colored) next main 1.49 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.51 / (download) - annotate - [select for diffs], Sun Jul 20 00:52:39 2008 UTC (14 years, 10 months ago) by lukem
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend
Changes since 1.50: +4 -4 lines
Diff to previous 1.50 (colored)

Remove the \n and tabs from the __COPYRIGHT() strings.

Revision 1.48.12.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:26:44 2008 UTC (14 years, 11 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.48: +25 -22 lines
Diff to previous 1.48 (colored)

Sync w/ -current. 34 merge conflicts to follow.

Revision 1.48.10.1 / (download) - annotate - [select for diffs], Wed Jun 4 02:02:56 2008 UTC (14 years, 11 months ago) by yamt
Branch: yamt-pf42
Changes since 1.48: +25 -22 lines
Diff to previous 1.48 (colored) next main 1.49 (colored)

sync with head

Revision 1.50 / (download) - annotate - [select for diffs], Mon May 26 22:45:33 2008 UTC (15 years ago) by dholland
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, wrstuden-revivesa-base-1, wrstuden-revivesa-base
Changes since 1.49: +24 -22 lines
Diff to previous 1.49 (colored)

Distinguish "this file failed" from "any file failed", to make cp -v
output behave itself. PR bin/37018 from Dieter Roelants.

(I used a slightly different patch to make sure "any file failed"
didn't get lost in the shuffle, and renamed the variables in the name
of greater clarity.)

Revision 1.49 / (download) - annotate - [select for diffs], Mon May 26 14:21:08 2008 UTC (15 years ago) by christos
Branch: MAIN
Changes since 1.48: +3 -2 lines
Diff to previous 1.48 (colored)

PR/38755: murray armfield: /bin posix programs missing setprogname and/or
setlocale

Revision 1.48 / (download) - annotate - [select for diffs], Tue Dec 26 00:13:24 2006 UTC (16 years, 5 months ago) by alc
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base2, yamt-pf42-base, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf
Branch point for: yamt-pf42, wrstuden-revivesa
Changes since 1.47: +8 -8 lines
Diff to previous 1.47 (colored)

fix whitespace nits (space -> tab)

Revision 1.47 / (download) - annotate - [select for diffs], Sun Oct 15 23:55:30 2006 UTC (16 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4
Changes since 1.46: +3 -3 lines
Diff to previous 1.46 (colored)

c99 initializers

Revision 1.44.2.1 / (download) - annotate - [select for diffs], Mon Aug 21 10:59:53 2006 UTC (16 years, 9 months ago) by ghen
Branch: abandoned-netbsd-4
Changes since 1.44: +9 -2 lines
Diff to previous 1.44 (colored) next main 1.45 (colored)

Pull up following revision(s) (requested by tron in ticket #30):
	regress/bin/cp/cp.sh: revision 1.2
	regress/bin/cp/cp.sh: revision 1.3
	bin/cp/cp.c: revision 1.45
	bin/cp/cp.c: revision 1.46
Avoid errors like "cp: /foo/bar/directory" exists if cp(1) is used to
copy multiple directories and the first one doesn't exist in the
target directiry but another one (e.g. the second) does.
initialize dne variable in the beginning, then move the resetting of
this variable down into the second (ie post-order) pass to make cp
pass all regression tests again.
allow each dir_to_dir test to be run individually without having to
rely on previous tests that set up the files and directories;
while here, clarify in each error message where exactly the error occurred
add a regression test for copying several subdirs into a target directory
where some subdirs already exist

Revision 1.46 / (download) - annotate - [select for diffs], Tue Aug 15 23:03:51 2006 UTC (16 years, 9 months ago) by jschauma
Branch: MAIN
Changes since 1.45: +10 -3 lines
Diff to previous 1.45 (colored)

initialize dne variable in the beginning, then move the resetting of
this variable down into the second (ie post-order) pass to make cp
pass all regression tests again.

Revision 1.45 / (download) - annotate - [select for diffs], Tue Aug 15 13:06:02 2006 UTC (16 years, 9 months ago) by tron
Branch: MAIN
Changes since 1.44: +3 -3 lines
Diff to previous 1.44 (colored)

Avoid errors like "cp: /foo/bar/directory" exists if cp(1) is used to
copy multiple directories and the first one doesn't exist in the
target directiry but another one (e.g. the second) does.

Revision 1.44 / (download) - annotate - [select for diffs], Sun Jul 16 16:22:24 2006 UTC (16 years, 10 months ago) by jschauma
Branch: MAIN
CVS Tags: abandoned-netbsd-4-base
Branch point for: abandoned-netbsd-4
Changes since 1.43: +16 -9 lines
Diff to previous 1.43 (colored)

return functionality backed out yesterday after fixing the bug I had
introduced before.  A regression test will be added to src/regress
shortly.

Revision 1.43 / (download) - annotate - [select for diffs], Sat Jul 15 20:42:55 2006 UTC (16 years, 10 months ago) by jschauma
Branch: MAIN
Changes since 1.42: +7 -15 lines
Diff to previous 1.42 (colored)

The last commit introduced a bug.  Revert until that's found and fixed.

Revision 1.42 / (download) - annotate - [select for diffs], Sat Jul 15 02:09:47 2006 UTC (16 years, 10 months ago) by jschauma
Branch: MAIN
Changes since 1.41: +17 -9 lines
Diff to previous 1.41 (colored)

As suggested on tech-userlevel:
"-R" claims:
 -R	[...] Created directories have the same mode as the corre-
	sponding source directory, unmodified
	by the process' umask.

Make this actually true.

In addition, make '-P' (no symbolic links are followed) apply even if
'-R' is not specified.  This allows users to overwrite symbolic links
with files and/or to copy symbolic links over a file without indirecting
through the link (ie a copy of a link turns the target into a link, not
a copy of the file pointed to by the source).

Revision 1.41 / (download) - annotate - [select for diffs], Fri Mar 17 06:22:30 2006 UTC (17 years, 2 months ago) by erh
Branch: MAIN
Changes since 1.40: +3 -2 lines
Diff to previous 1.40 (colored)

Fix Coverity issue 1754.  Call fts_close() after we're done copying.

Revision 1.40 / (download) - annotate - [select for diffs], Wed Nov 16 22:42:12 2005 UTC (17 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.39: +40 -18 lines
Diff to previous 1.39 (colored)

- Better detect pathname overflow (from FreeBSD)
- Change destination normal file detection to match with FreeBSD
- Trim trailing slashes from source filenames so that cp foo/ == cp foo

Revision 1.39 / (download) - annotate - [select for diffs], Mon Oct 24 12:59:07 2005 UTC (17 years, 7 months ago) by kleink
Branch: MAIN
Changes since 1.38: +2 -6 lines
Diff to previous 1.38 (colored)

Remove the "" -> "." target conversion kludge.

Revision 1.38 / (download) - annotate - [select for diffs], Sat Oct 15 18:22:18 2005 UTC (17 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.37: +7 -8 lines
Diff to previous 1.37 (colored)

- Don't output 'src -> dst' when -v and there was an error.
- Mark usage as noreturn, and remove extraneous exit.
- Pass lint.
Reported by Liam Foy.

Revision 1.37 / (download) - annotate - [select for diffs], Mon Aug 15 17:13:35 2005 UTC (17 years, 9 months ago) by elad
Branch: MAIN
Changes since 1.36: +7 -4 lines
Diff to previous 1.36 (colored)

Add and document -N: When used with -p, it will not copy the file flags.
PR 13645.

Revision 1.36 / (download) - annotate - [select for diffs], Sun Jun 26 19:10:48 2005 UTC (17 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.35: +4 -3 lines
Diff to previous 1.35 (colored)

sprinkle a little const, and now everything compiles with WARNS=3

Revision 1.35 / (download) - annotate - [select for diffs], Sun Sep 14 19:20:18 2003 UTC (19 years, 8 months ago) by jschauma
Branch: MAIN
CVS Tags: netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Changes since 1.34: +22 -46 lines
Diff to previous 1.34 (colored)

Following private discussion with kleink@ and hubertf@ and public discussion
on tech-userlevel@, back out printescaped() functionality.
kleink: ``We sell rope.''

Revision 1.34 / (download) - annotate - [select for diffs], Thu Aug 7 09:05:03 2003 UTC (19 years, 9 months ago) by agc
Branch: MAIN
Changes since 1.33: +3 -7 lines
Diff to previous 1.33 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22249, verified by myself.

Revision 1.33 / (download) - annotate - [select for diffs], Mon Aug 4 22:31:22 2003 UTC (19 years, 9 months ago) by jschauma
Branch: MAIN
Changes since 1.32: +75 -33 lines
Diff to previous 1.32 (colored)

As discusses a little while back on tech-userlevel:

If stdout is a tty, use vis(3) to print any filenames to prevent garbage
from being printed if the filename contains control- or other non-printable
characters.

While here, sprinkle some EXIT_FAILURE and NOTREACHED where appropriate.

Revision 1.32 / (download) - annotate - [select for diffs], Mon Dec 16 14:44:14 2002 UTC (20 years, 5 months ago) by jrf
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.31: +9 -4 lines
Diff to previous 1.31 (colored)

Added a -v verbose option to the cp(1) command. Updated man page and utils as well. This applies to PR bin/16834. This change was approved by Christos.

Revision 1.31 / (download) - annotate - [select for diffs], Thu Sep 13 09:53:59 2001 UTC (21 years, 8 months ago) by wiz
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6
Changes since 1.30: +10 -16 lines
Diff to previous 1.30 (colored)

ANSIfication and some KNF fixes by Petri Koistinen from bin/13681.

Revision 1.28.8.1 / (download) - annotate - [select for diffs], Thu Jul 27 16:15:28 2000 UTC (22 years, 10 months ago) by itojun
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2
Changes since 1.28: +3 -3 lines
Diff to previous 1.28 (colored) next main 1.29 (colored)

pullup (approved by releng-1-5)
printf-like format pedant.  do not pass string variable alone.  use "%s".
from openbsd.

/cvsroot/basesrc/bin/dd/conv.c	1.8 -> 1.9
/cvsroot/basesrc/bin/cp/cp.c	1.29 -> 1.30
/cvsroot/basesrc/bin/chmod/chmod.c	1.22 -> 1.23

Revision 1.30 / (download) - annotate - [select for diffs], Fri Jul 7 12:50:15 2000 UTC (22 years, 10 months ago) by itojun
Branch: MAIN
Changes since 1.29: +3 -3 lines
Diff to previous 1.29 (colored)

errx?/warnx? audit.  do not pass variable alone, use %s. idea from openbsd

Revision 1.29 / (download) - annotate - [select for diffs], Mon Jul 3 03:26:17 2000 UTC (22 years, 11 months ago) by matt
Branch: MAIN
Changes since 1.28: +3 -2 lines
Diff to previous 1.28 (colored)

include <stdlib.h>, <string.h>, or whatever as appropriate to shut up
gcc 2.96

Revision 1.28 / (download) - annotate - [select for diffs], Sun Sep 5 16:14:43 1999 UTC (23 years, 8 months ago) by kleink
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, netbsd-1-5-base, minoura-xpg4dl-base, minoura-xpg4dl, comdex-fall-1999-base, comdex-fall-1999
Branch point for: netbsd-1-5
Changes since 1.27: +5 -2 lines
Diff to previous 1.27 (colored)

Initialize locale on startup.

Revision 1.27 / (download) - annotate - [select for diffs], Mon Mar 1 18:57:29 1999 UTC (24 years, 3 months ago) by mjl
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4
Changes since 1.26: +14 -11 lines
Diff to previous 1.26 (colored)

Correct behaviour in case of dangling symlinks: they would be (contrary
to what the manpage and POSIX say) copied as symlinks, even without -R.
Return ENOENT instead. Closes PR 6975 by Johan Danielsson <joda@pdc.kth.se>.

From FreeBSD: return correct error message if source directory is
unreadable; remove unnecessarily included headers.

Revision 1.26 / (download) - annotate - [select for diffs], Thu Feb 25 05:43:04 1999 UTC (24 years, 3 months ago) by dean
Branch: MAIN
Changes since 1.25: +5 -4 lines
Diff to previous 1.25 (colored)

Got rid of redundant error message (X is a directory (not copied). was
printed twice)

Revision 1.25 / (download) - annotate - [select for diffs], Thu Oct 8 17:43:24 1998 UTC (24 years, 7 months ago) by wsanchez
Branch: MAIN
Changes since 1.24: +51 -31 lines
Diff to previous 1.24 (colored)

Fix bug where "cp -f" didn't work.
  It's suppsed to remove the file and then copy, which it wasn't doing.
But no wait, it turns out that the described behaviour in the manual doesn't
  agree with POSIX. So we change the above fix and the manual to "try copy, and
  if fail, try remove, then copy".
Fix bug where "cp -R" didn't work on read-only directories:
  It would make the directory, set the mode, and not be able to write files into it.
Don't bother mmap()ing files of zero length. Was a workaround for a bug in Rhapsody
  mmap(), which didn't get along with such files, but makes sense anyway.
Fix race condition where "cp -p" would set the mod time of a file before close()ing
  the file, which would update the mod time and therefore screw up the "-p" idea,
  except, of course, while running in gdb, which sucked.
Add -f option to usage message in binary and man page. Already documented in man page.

Revision 1.24 / (download) - annotate - [select for diffs], Wed Aug 19 01:29:11 1998 UTC (24 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.23: +4 -3 lines
Diff to previous 1.23 (colored)

Add some braces to keep egcs happy.

Revision 1.23 / (download) - annotate - [select for diffs], Tue Jul 28 11:41:40 1998 UTC (24 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.22: +2 -3 lines
Diff to previous 1.22 (colored)

Be more retentive about use of NOTREACHED and noreturn.

Revision 1.22 / (download) - annotate - [select for diffs], Tue Jul 28 05:31:22 1998 UTC (24 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.21: +3 -2 lines
Diff to previous 1.21 (colored)

Delint.

Revision 1.21 / (download) - annotate - [select for diffs], Tue Jul 28 04:10:36 1998 UTC (24 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.20: +6 -4 lines
Diff to previous 1.20 (colored)

Delint.

Revision 1.20 / (download) - annotate - [select for diffs], Tue Jul 28 03:47:14 1998 UTC (24 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.19: +4 -3 lines
Diff to previous 1.19 (colored)

Delint.

Revision 1.19 / (download) - annotate - [select for diffs], Sun Sep 14 07:15:28 1997 UTC (25 years, 8 months ago) by lukem
Branch: MAIN
CVS Tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored)

* getopt returns -1 not EOF
* cleanup use of .Nm in manpage

Revision 1.18 / (download) - annotate - [select for diffs], Sun Jul 20 05:13:36 1997 UTC (25 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.17: +9 -5 lines
Diff to previous 1.17 (colored)

- Use __COPYRIGHT() and __RCSID()
- Fix compiler warnings.

Revision 1.17 / (download) - annotate - [select for diffs], Wed May 21 09:48:33 1997 UTC (26 years ago) by kleink
Branch: MAIN
Changes since 1.16: +9 -8 lines
Diff to previous 1.16 (colored)

Fix one remaining botch when copying directory trees using -R.

Revision 1.16 / (download) - annotate - [select for diffs], Mon May 19 01:07:33 1997 UTC (26 years ago) by kleink
Branch: MAIN
Changes since 1.15: +7 -7 lines
Diff to previous 1.15 (colored)

Fix thinko in last commit, causing "cp file /" to succeed but
"cp file1 file2 /" to fail badly; fixes PR/3646 from Paul Kranenburg.

Revision 1.15 / (download) - annotate - [select for diffs], Wed Apr 9 12:06:13 1997 UTC (26 years, 1 month ago) by kleink
Branch: MAIN
Changes since 1.14: +4 -4 lines
Diff to previous 1.14 (colored)

Fix lossage with new namei() when the destination given is "/";
reported by Bernd Ernesti.

Revision 1.14 / (download) - annotate - [select for diffs], Thu Sep 7 06:14:51 1995 UTC (27 years, 8 months ago) by jtc
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2, netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.13: +4 -4 lines
Diff to previous 1.13 (colored)

Sync with 4.4lite2

Revision 1.1.1.3 / (download) - annotate - [select for diffs] (vendor branch), Thu Sep 7 06:13:24 1995 UTC (27 years, 8 months ago) by jtc
Branch: WFJ-920714, CSRG
CVS Tags: lite-2
Changes since 1.1.1.2: +12 -5 lines
Diff to previous 1.1.1.2 (colored)

imported from 44lite2

Revision 1.13 / (download) - annotate - [select for diffs], Sun Apr 2 01:45:25 1995 UTC (28 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.12: +4 -4 lines
Diff to previous 1.12 (colored)

Fix typo in S_FIFO case when copying recursively.

Revision 1.12 / (download) - annotate - [select for diffs], Tue Mar 21 09:02:14 1995 UTC (28 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.11: +7 -2 lines
Diff to previous 1.11 (colored)

convert to new RCS id conventions.

Revision 1.11 / (download) - annotate - [select for diffs], Thu Jan 26 06:01:36 1995 UTC (28 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

Fix core dump reported by Wolfram Schneider.

Revision 1.10 / (download) - annotate - [select for diffs], Thu Sep 22 09:24:40 1994 UTC (28 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.9: +310 -452 lines
Diff to previous 1.9 (colored)

Merge 4.4-Lite version.

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Thu Sep 22 03:04:13 1994 UTC (28 years, 8 months ago) by mycroft
Branch: WFJ-920714, CSRG
CVS Tags: lite-1
Changes since 1.1.1.1: +305 -414 lines
Diff to previous 1.1.1.1 (colored)

Import original 4.4-Lite version.

Revision 1.9 / (download) - annotate - [select for diffs], Mon Mar 28 02:07:04 1994 UTC (29 years, 2 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-0-base, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0, netbsd-1-0
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)

no more MAP_FILE

Revision 1.8 / (download) - annotate - [select for diffs], Fri Feb 25 00:43:25 1994 UTC (29 years, 3 months ago) by jtc
Branch: MAIN
Changes since 1.7: +10 -2 lines
Diff to previous 1.7 (colored)

POSIX.2 (and common sense) says that you can't overwrite a directory with
a non-directory.

Revision 1.7 / (download) - annotate - [select for diffs], Tue Nov 9 18:57:54 1993 UTC (29 years, 6 months ago) by jtc
Branch: MAIN
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

Check user's response against both 'Y' and 'y' --- this is really supposed
to be a locale specific regular expression.  This change hard codes POSIX
locale behavior, and will be replaced by a locale independant equivalent
as soon as locales are fully implemented.

Revision 1.6 / (download) - annotate - [select for diffs], Sat Oct 30 13:06:46 1993 UTC (29 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.5: +3 -1 lines
Diff to previous 1.5 (colored)

From Lennart Augustsson:
If we mmap() the file, make sure we munmap() when we're done.

Revision 1.5 / (download) - annotate - [select for diffs], Sat Aug 7 03:14:55 1993 UTC (29 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.4: +111 -81 lines
Diff to previous 1.4 (colored)

New version from uunet.  Uses mmap().

Revision 1.4 / (download) - annotate - [select for diffs], Sun Aug 1 19:01:02 1993 UTC (29 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

Add RCS identifiers.

Revision 1.3 / (download) - annotate - [select for diffs], Tue Mar 23 00:23:42 1993 UTC (30 years, 2 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-alpha-1, netbsd-0-9-base, netbsd-0-9-RELEASE, netbsd-0-9-BETA, netbsd-0-9-ALPHA2, netbsd-0-9-ALPHA, netbsd-0-9, netbsd-0-8
Changes since 1.2: +1 -1 lines
Diff to previous 1.2 (colored)

changed "Id" to "Header" for rcsids

Revision 1.2 / (download) - annotate - [select for diffs], Mon Mar 22 08:04:00 1993 UTC (30 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.1: +1 -0 lines
Diff to previous 1.1 (colored)

added rcs ids to all files

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 21 09:45:37 1993 UTC (30 years, 2 months ago) by cgd
Branch: WFJ-920714, CSRG
CVS Tags: patchkit-0-2-2, WFJ-386bsd-01
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of 386bsd-0.1 sources

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (30 years, 2 months ago) by cgd
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>