From d176aa38b9582d19905c3820189022862a5a7a8b Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Thu, 20 Jan 2011 01:59:46 -0500 Subject: [PATCH] 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 --- src/vol/vol-salvage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5