Pádraig Brady
3d53e7fe1c
cp: change --attributes-only to not truncate existing files
...
* src/copy.c (copy_reg): Don't truncate an existing file,
to support copying attributes between existing files.
The original use case only considered creating new files,
and it would be a very unusual use case to be relying
on the truncating behavior.
* doc/coreutils.texi (cp invocation): Mention the non
truncating behavior.
* tests/cp/attr-existing: A new test to ensure O_TRUNC skipped.
* tests/Makefile.am: Reference the new test.
* NEWS: Mention the change in behavior.
2012-04-12 18:35:17 +01:00
..
2012-01-09 21:50:08 +01:00
2012-04-04 12:20:56 +02:00
2012-04-12 18:35:17 +01:00
2012-01-27 11:35:24 +01:00
2012-01-01 10:04:06 +01:00
2012-01-27 11:35:24 +01:00
2012-01-01 10:04:06 +01:00
2012-04-04 12:20:56 +02:00
2012-01-09 21:50:08 +01:00
2012-01-27 11:35:24 +01:00
2012-01-09 21:50:08 +01:00
2012-04-04 12:20:56 +02:00
2012-04-04 12:20:56 +02:00
2012-04-04 12:20:56 +02:00
2012-01-27 11:35:24 +01:00
2012-01-27 11:35:24 +01:00
2012-01-27 11:35:24 +01:00
2012-01-27 11:35:24 +01:00
2012-01-01 10:04:06 +01:00
2012-01-01 10:04:06 +01:00
2012-04-04 12:20:56 +02:00
2012-01-01 10:04:06 +01:00
2012-04-04 12:20:56 +02:00
2012-01-09 21:50:08 +01:00
2012-04-04 12:20:56 +02:00
2012-01-27 11:35:24 +01:00
2012-01-27 11:35:24 +01:00
2012-01-01 10:04:06 +01:00
2012-01-01 10:04:06 +01:00
2012-04-04 12:20:56 +02:00
2012-04-04 12:20:56 +02:00
2012-04-04 12:20:56 +02:00
2012-04-04 12:20:56 +02:00
2012-04-04 12:20:56 +02:00
2012-01-01 10:04:06 +01:00
2012-04-04 12:20:56 +02:00
2012-04-04 12:22:24 +02:00
2012-01-27 11:35:24 +01:00
2012-04-04 12:22:24 +02:00
2012-04-04 12:20:56 +02:00
2012-01-01 10:04:06 +01:00
2012-01-01 10:04:06 +01:00
2012-01-01 10:04:06 +01:00
2012-04-04 12:20:56 +02:00
2012-01-01 10:04:06 +01:00
2012-01-01 10:04:06 +01:00
2012-04-04 12:22:24 +02:00
2012-01-27 11:35:24 +01:00
2012-04-04 12:20:56 +02:00
2012-01-25 18:19:55 +00:00
2012-01-01 10:04:06 +01:00
2012-04-04 12:20:56 +02:00
2012-01-01 10:04:06 +01:00
2012-01-01 10:04:06 +01:00
2012-04-04 12:20:56 +02:00
2012-01-09 21:50:08 +01:00
2006-09-08 17:08:53 +00:00