From 089a3f5e8b0b00942cd0ccff5be7b4f671fcbf82 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. Change-Id: Idcfc18345abe5532e9ebe97fc757d6f435c2af52 Reviewed-on: http://gerrit.openafs.org/3704 Reviewed-by: Derrick Brashear Tested-by: BuildBot --- 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 84e2e02ef7..14193a2f8a 100644 --- a/src/vol/vol-salvage.c +++ b/src/vol/vol-salvage.c @@ -835,7 +835,7 @@ SalvageFileSys1(struct DiskPartition64 *partP, VolumeId singleVolumeNumber) strcpy(npath, salvinfo->fileSysPath); strcat(npath, OS_DIRSEP); strcat(npath, dp->d_name); - unlink(npath); + OS_UNLINK(npath); } } closedir(dirp);