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.8.0_pre1^2~4252 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=089a3f5e8b0b00942cd0ccff5be7b4f671fcbf82;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. Change-Id: Idcfc18345abe5532e9ebe97fc757d6f435c2af52 Reviewed-on: http://gerrit.openafs.org/3704 Reviewed-by: Derrick Brashear Tested-by: BuildBot --- diff --git a/src/vol/vol-salvage.c b/src/vol/vol-salvage.c index 84e2e02ef..14193a2f8 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);