]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
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>
Mon, 7 Feb 2011 15:24:42 +0000 (07:24 -0800)
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 <shadow@dementia.org>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
(cherry picked from commit 089a3f5e8b0b00942cd0ccff5be7b4f671fcbf82)

Change-Id: Ib3207b7c365b9ede5299bdbc7626e63450198ad7
Reviewed-on: http://gerrit.openafs.org/3851
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
src/vol/vol-salvage.c

index 2f7bea5f3cc1ed2e1007de28613a5d06d5cef096..e5a1e2be36e9831785e09cc1905dca7e842bdb76 100644 (file)
@@ -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);