HOURGLASS hourglass;
- CString debugBuf;
-
- debugBuf.Format(_T("IsPathInAfs(%s)"), strPath);
- OutputDebugString(debugBuf);
-
memset(&options, 0, sizeof(options));
options.size = sizeof(options);
options.field_flags |= CM_IOCTL_QOPTS_FIELD_LITERAL;
blob.out = (char *) &fid;
code = pioctl_T(strPath, VIOCGETFID, &blob, 1);
-
- debugBuf.Format(_T("VIOCGETFID=%d"), code);
- OutputDebugString(debugBuf);
-
if (code) {
if ((errno == EINVAL) || (errno == ENOENT))
return FALSE;
HOURGLASS hourglass;
- {
- CString str;
- str.Format(_T("IsSymlink(%s)"), strName);
- OutputDebugString(str);
- }
-
CStringUtf8 ustrLast(LastComponent(strName));
CString strParent = Parent(strName);
HOURGLASS hourglass;
- {
- CString str;
- str.Format(_T("IsMountPoint(%s)"), path);
- OutputDebugString(str);
- }
-
CString parent = Parent(path);
FixNetbiosPath(parent);
CStringUtf8 mountpoint(LastComponent(path));
- {
- CString str;
-#ifdef UNICODE
- str.Format(_T("last_component=%S"), mountpoint);
-#else
- str.Format(_T("last_component=%s"), mountpoint);
-#endif
- OutputDebugString(str);
- }
-
blob.in_size = mountpoint.GetLength() + 1;
blob.in = mountpoint.GetBuffer();
blob.out = lsbuffer;
CString strParent = Parent(strName);
FixNetbiosPath(strParent);
- {
- CString str;
- str.Format(_T("MakeSymbolicLink: name = %s target = %s parent = %s\n"),
- strName, strTarget, strParent);
- OutputDebugString(str);
- }
-
if ( IsFreelanceRoot(strParent) && !IsAdmin() ) {
ShowMessageBox(IDS_NOT_AFS_CLIENT_ADMIN_ERROR, MB_ICONERROR, IDS_NOT_AFS_CLIENT_ADMIN_ERROR);
return FALSE;