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 <shadow@dementia.org>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
This commit is contained in:
Jeffrey Altman 2011-01-20 01:59:46 -05:00 committed by Derrick Brashear
parent 141aca818e
commit 089a3f5e8b

View File

@ -835,7 +835,7 @@ SalvageFileSys1(struct DiskPartition64 *partP, VolumeId singleVolumeNumber)
strcpy(npath, salvinfo->fileSysPath); strcpy(npath, salvinfo->fileSysPath);
strcat(npath, OS_DIRSEP); strcat(npath, OS_DIRSEP);
strcat(npath, dp->d_name); strcat(npath, dp->d_name);
unlink(npath); OS_UNLINK(npath);
} }
} }
closedir(dirp); closedir(dirp);