If the path in which a Symlink is to be created is not located
within AFS, display an error dialog.
Change-Id: I8e4cc6840d56184da7d842cc552d11624cdef89d
Reviewed-on: http://gerrit.openafs.org/7643
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
Tested-by: Jeffrey Altman <jaltman@your-file-system.com>
CString strParent = Parent(strName);
FixNetbiosPath(strParent);
+ if (!IsPathInAfs(strParent)) {
+ ShowMessageBox(IDS_MAKE_LNK_NOT_AFS_ERROR, MB_ICONERROR, IDS_MAKE_MP_NOT_AFS_ERROR);
+ return FALSE;
+ }
+
if ( IsFreelanceRoot(strParent) && !IsAdmin() ) {
ShowMessageBox(IDS_NOT_AFS_CLIENT_ADMIN_ERROR, MB_ICONERROR, IDS_NOT_AFS_CLIENT_ADMIN_ERROR);
return FALSE;
IDS_UNABLE_TO_SET_CURRENT_DIRECTORY "Unable to set current directory."
IDS_CURRENT_DIRECTORY_PATH_TOO_LONG "Current directory pathname is too long."
IDS_CLEANACL_ERROR "Error Cleaning ACL(s)."
- IDS_MAKE_LNK_NOT_AFS_ERROR "Symlinks must be created within the AFS file system."
+ IDS_MAKE_LNK_NOT_AFS_ERROR "Symbolic Links must be created within the AFS file system."
IDS_NOT_AFS_CLIENT_ADMIN_ERROR "Must be AFS Client Administrators to modify the root.afs volume."
IDS_WARNING "Warning"
IDS_VOLUME_NOT_IN_CELL_WARNING "Volume %s does not exist in cell %s.\n"