nuke-create-windows-pathnames-only-on-windows-thanks-20030228
authorHarald Barth <haba@pdc.kth.se>
Sat, 1 Mar 2003 01:22:08 +0000 (01:22 +0000)
committerDerrick Brashear <shadow@dementia.org>
Sat, 1 Mar 2003 01:22:08 +0000 (01:22 +0000)
don't construct a windows path on unix

src/vol/nuke.c

index 59aa959..e94c930 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;
     }