Patch from Matt Kraai to fix debian bug #227081
authorGlenn L McGrath <bug1@ihug.co.nz>
Sun, 11 Jan 2004 05:20:59 +0000 (05:20 -0000)
committerGlenn L McGrath <bug1@ihug.co.nz>
Sun, 11 Jan 2004 05:20:59 +0000 (05:20 -0000)
commit447bc2d17f3abfac1f0f1a801d01641aada7027c
treedcb550f74334dbc1ecd04f39d132c56391977375
parent716ccb263569560777f7ff31581e1242d1cb33aa
Patch from Matt Kraai to fix debian bug #227081

cp does not truncate existing destinations.  That is, after
running

 echo foo > foo
 echo fubar > fubar
 cp foo fubar

the contents of fubar are

 foo
 r

instead of

 foo
libbb/copy_file.c