vol: use OS_UNLINK instead of unlink
authorJeffrey Altman <jaltman@your-file-system.com>
Thu, 20 Jan 2011 06:59:46 +0000 (01:59 -0500)
committerDerrick Brashear <shadow@dementia.org>
Sat, 22 Jan 2011 20:43:34 +0000 (12:43 -0800)
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>

src/vol/vol-salvage.c

index 84e2e02..14193a2 100644 (file)
@@ -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);