* Change hc_remove() to return a -errno if an error occurs instead of -1.
authorMatthew Dillon <dillon@dragonflybsd.org>
Tue, 11 Nov 2008 04:36:00 +0000 (04:36 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Tue, 11 Nov 2008 04:36:00 +0000 (04:36 +0000)
commit77133d9639650706ff7148254b6a9296e376d42a
tree80242da3a5f195b11e1b863474dae635d766439f
parent127640b8da2e2449d131651db2cb41bcd1f676fa
* Change hc_remove() to return a -errno if an error occurs instead of -1.

* Adjust most hc_remove() calls to xremove(), which calls hc_remove() and
  retries with a chflags/remove sequence if the initial removal fails with
  EPERM.  This should help when there are hardlinks to a file marked schg.
bin/cpdup/cpdup.c
bin/cpdup/hcproto.c