mirror of
https://git.openafs.org/openafs.git
synced 2025-01-21 08:20:16 +00:00
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:
parent
141aca818e
commit
089a3f5e8b
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user