]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE12-nuke-create-windows-pathnames-only-on-windows-thanks-20030228
authorHarald Barth <haba@pdc.kth.se>
Sat, 1 Mar 2003 01:22:49 +0000 (01:22 +0000)
committerDerrick Brashear <shadow@dementia.org>
Sat, 1 Mar 2003 01:22:49 +0000 (01:22 +0000)
don't construct a windows path on unix

(cherry picked from commit 54f056cc7a4a496c82eb6fdb9ba943c079702527)

src/vol/nuke.c

index fd390b5c16ec24d19ca797c8c1d0f027e31dd3d7..787252c7d98d474d064244de3affb7997f3f49df 100644 (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;
     }