mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 23:10:58 +00:00
STABLE12-nuke-create-windows-pathnames-only-on-windows-thanks-20030228
don't construct a windows path on unix
(cherry picked from commit 54f056cc7a
)
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.
|
||||
*/
|
||||
/* reuse devName buffer now */
|
||||
#ifdef AFS_NAMEI_ENV
|
||||
#ifdef AFS_NT40_ENV
|
||||
sprintf(devName, "%c:\\%s", *lastDevComp , VolumeExternalName(avolid));
|
||||
#else
|
||||
sprintf(devName, "%s/%s", aname, VolumeExternalName(avolid));
|
||||
#endif /* AFS_NAMEI_ENV */
|
||||
#endif /* AFS_NT40_ENV */
|
||||
code = unlink(devName);
|
||||
if (code) code = errno;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user