From: Jeffrey Altman Date: Thu, 20 Jan 2011 06:59:46 +0000 (-0500) Subject: vol: use OS_UNLINK instead of unlink X-Git-Tag: upstream/1.6.0.pre2^2~52 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=d176aa38b9582d19905c3820189022862a5a7a8b;p=packages%2Fo%2Fopenafs.git vol: use OS_UNLINK instead of unlink Use OS_UNLINK in order to ensure that platform specific unlink functions are called. OS_UNLINK is unlink on Unix. Reviewed-on: http://gerrit.openafs.org/3704 Reviewed-by: Derrick Brashear Tested-by: BuildBot (cherry picked from commit 089a3f5e8b0b00942cd0ccff5be7b4f671fcbf82) Change-Id: Ib3207b7c365b9ede5299bdbc7626e63450198ad7 Reviewed-on: http://gerrit.openafs.org/3851 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- diff --git a/src/vol/vol-salvage.c b/src/vol/vol-salvage.c index 2f7bea5f3..e5a1e2be3 100644 --- a/src/vol/vol-salvage.c +++ b/src/vol/vol-salvage.c @@ -817,7 +817,7 @@ SalvageFileSys1(struct DiskPartition64 *partP, VolumeId singleVolumeNumber) strcpy(npath, fileSysPath); strcat(npath, OS_DIRSEP); strcat(npath, dp->d_name); - unlink(npath); + OS_UNLINK(npath); } } closedir(dirp);