From: Harald Barth Date: Sat, 1 Mar 2003 01:22:49 +0000 (+0000) Subject: STABLE12-nuke-create-windows-pathnames-only-on-windows-thanks-20030228 X-Git-Tag: openafs-stable-1_2_9~51 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=a760f23834439a94e2a74c3f8cf8f9588f3d7783;p=packages%2Fo%2Fopenafs.git STABLE12-nuke-create-windows-pathnames-only-on-windows-thanks-20030228 don't construct a windows path on unix (cherry picked from commit 54f056cc7a4a496c82eb6fdb9ba943c079702527) --- diff --git a/src/vol/nuke.c b/src/vol/nuke.c index fd390b5c1..787252c7d 100644 --- a/src/vol/nuke.c +++ b/src/vol/nuke.c @@ -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; }