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:
Harald Barth 2003-03-01 01:22:49 +00:00 committed by Derrick Brashear
parent 2d6897746a
commit a760f23834

View File

@ -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;
}