mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 13:38:01 +00:00
STABLE12-nuke-create-windows-pathnames-only-on-windows-thanks-20030228
don't construct a windows path on unix (cherry picked from commit 54f056cc7a4a496c82eb6fdb9ba943c079702527)
This commit is contained in:
parent
2d6897746a
commit
a760f23834
@ -204,11 +204,11 @@ afs_int32 avolid; {
|
|||||||
* volume's ID in its inode, and has to be removed explicitly.
|
* volume's ID in its inode, and has to be removed explicitly.
|
||||||
*/
|
*/
|
||||||
/* reuse devName buffer now */
|
/* reuse devName buffer now */
|
||||||
#ifdef AFS_NAMEI_ENV
|
#ifdef AFS_NT40_ENV
|
||||||
sprintf(devName, "%c:\\%s", *lastDevComp , VolumeExternalName(avolid));
|
sprintf(devName, "%c:\\%s", *lastDevComp , VolumeExternalName(avolid));
|
||||||
#else
|
#else
|
||||||
sprintf(devName, "%s/%s", aname, VolumeExternalName(avolid));
|
sprintf(devName, "%s/%s", aname, VolumeExternalName(avolid));
|
||||||
#endif /* AFS_NAMEI_ENV */
|
#endif /* AFS_NT40_ENV */
|
||||||
code = unlink(devName);
|
code = unlink(devName);
|
||||||
if (code) code = errno;
|
if (code) code = errno;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user