git://git.openafs.org
/
openafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
1e3319b
)
nuke-create-windows-pathnames-only-on-windows-thanks-20030228
author
Harald Barth
<haba@pdc.kth.se>
Sat, 1 Mar 2003 01:22:08 +0000 (
01:22
+0000)
committer
Derrick 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
patch
|
blob
|
history
diff --git
a/src/vol/nuke.c
b/src/vol/nuke.c
index
59aa959
..
e94c930
100644
(file)
--- 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;
}