]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
afsifs-both-20050615
authorEric Williams <ericjw@umich.edu>
Wed, 15 Jun 2005 19:51:54 +0000 (19:51 +0000)
committerJim Rees <rees@umich.edu>
Wed, 15 Jun 2005 19:51:54 +0000 (19:51 +0000)
this patchset makes it build both ways.

src/WINNT/afsd/cm_ioctl.c
src/sys/pioctl_nt.c

index 29b83c9b823382a0b251b7a1c8940f0b6b504f56..bd1cd6368559219236e4c5076c66eed2712835a4 100644 (file)
@@ -42,7 +42,7 @@
 #include "cm_rpc.h"
 #include <strsafe.h>
 #include <winioctl.h>
-#include <WINNT\afsrdr\kif.h>
+#include <..\afsrdr\kif.h>
 
 #ifdef _DEBUG
 #include <crtdbg.h>
index 333c3dca6410c2b2630df4f2cc43c7f140741494..67da815e8df4996607a9e6d6a00c2bf89751b331 100644 (file)
@@ -66,7 +66,7 @@ RCSID
 #include <pioctl_nt.h>
 #include <WINNT/afsreg.h>
 #include <lanahelper.h>
-#include <WINNT/afsrdr/kif.h>
+#include <../WINNT/afsrdr/kif.h>
 
 #include <loadfuncs-krb5.h>
 #include <krb5.h>
@@ -824,7 +824,6 @@ fs_GetFullPath(char *pathp, char *outPathp, long outSize)
     /* now get the absolute path to the current wdir in this drive */
     GetCurrentDirectory(sizeof(tpath), tpath);
     if (tpath[1] == ':')
-#ifndef AFSIFS
         strcpy(outPathp, tpath + 2);   /* skip drive letter */
     else if ( tpath[0] == '\\' && tpath[1] == '\\') {
         /* UNC path - strip off the server and sharename */
@@ -839,26 +838,6 @@ fs_GetFullPath(char *pathp, char *outPathp, long outSize)
         } else {
             strcpy(outPathp,&tpath[--i]);
         }
-#else
-               {
-               HANDLE rootDir;
-
-        strcpy(outPathp, tpath);
-
-               sprintf(outPathp, "%c:\\", tpath[0]);
-               rootDir = CreateFile(outPathp, 0, 0, NULL, OPEN_EXISTING, FILE_FLAG_BACKUP_SEMANTICS, NULL);
-
-               if (!DeviceIoControl(rootDir, IOCTL_AFSRDR_GET_PATH, NULL, 0, absRoot_w, 100*sizeof(wchar_t), &length, NULL))
-                       {
-                       CloseHandle(rootDir);
-                       return CM_ERROR_NOSUCHPATH;
-                       }
-               CloseHandle(rootDir);
-
-               ifs_ConvertFileName(absRoot_w, length/sizeof(wchar_t), absRoot, 100);
-
-               }
-#endif
     } else {
         /* this should never happen */
         strcpy(outPathp, tpath);