LICENSE MIT
Add support for linked cells. Acquire tokens for the linked cell in
addition to the specified cell.
(cherry picked from commit 01c4e08cf8c90c4f01a70e14a73c07e2382d3451)
LICENSE MIT
when parsing ipaddrs in CellServDB rejects addrs whose components are
values greater than 255.
(cherry picked from commit 68902640a2eb1d47d7dd13b3fae9d19eddf64a6e)
LICENSE MIT
When loading the afsdhook.dll require that it be in the same directory
as afsd_service.exe. This prevents LoadLibrary() from searching the PATH
environment variable if it cannot be found. If the PATH environment
variable contains a path in AFS, the library will fail to load and take
a very long time doing so.
(cherry picked from commit a36618213694f37cd1cec660336267a38cee9344)
LICENSE MIT
FIXES 123571
The Windows code base was implemented ignorant of linked cells as
defined in the src/auth/cellconfig.h struct afsconf_cell. The code
that made use of the afsconf_cell objects would leak the memory from
the linkedCell field if is non-NULL.
Add cm_SearchCellFileEx which is an extended version of cm_SearchCellFile
capable of returning a linked cell obtained from the CellServDB file.
Update GetCellConfig to populate the linkedCell field of the afsconf_cell
structure.
Modify cm_cell_t to support a linked cell name.
Modify cm_GetCell_Gen() to populate the cm_cell_t linked cell and enforce
that two cells are linked to each other.
Modify cm_GetVolumeByID() and cm_GetVolumeByName() to perform fallback
to the linked cell if the response is CM_ERROR_NOSUCHVOLUME.
(cherry picked from commit 70fda445bd0fb8bd3e246e859b4582170ea271eb)
LICENSE IPL10
correct file name to match the file.
committed broken in windows-file-versioning-20030619
(cherry picked from commit ef70f73141bf9940ec10d42c2d6ab5b6b341cdc9)
LICENSE IPL10
make sure any variable whose value is used will be initialized before that
value is used. (these aren't just warnings)
(cherry picked from commit fc78255c1dc29c55b67f7a7b4599bed141282213)
LICENSE MIT
reformat some of the recent changes
cast away warnings on 64-bit windows
(cherry picked from commit f64ecbf721dbc115103684a3d71a095854607812)
LICENSE IPL10
revise things so we don't need to check initd outside analyze.c/InitReq
====================
This delta was composed from multiple commits as part of the CVS->Git migration.
The checkin message with each commit was inconsistent.
The following are the additional commit messages.
====================
LICENSE IPL10
since these end up being used, init them too
(cherry picked from commit 6d14b44b7c83918bcd7e6e07ec365f8430ad23c5)
LICENSE IPL10
FIXES 120491
avoid deadlocking ourselves due to recursion when flushing pages on an
mmap()ed file larger than the cache
(cherry picked from commit 4a587356a31ac5afdf17d329a8598f70cf8bc3af)
LICENSE IPL10
FIXES 118058
fix the quoting and remove the tests we shouldn't need anymore
(cherry picked from commit bc9c0a14154639d8e45554a3abeb867af9a8d0b2)
LICENSE MIT
FIXES 116641
Windows will deliver to OpenAFS UTF16 strings that are not valid Unicode
and cannot be converted to UTF8. Return bad file name errors in those
cases.
Make sure all file server strings once converted to UTF16 can be converted
back. If not, escape the invalid portions of the string so that the
file can be accessed.
LICENSE MIT
if an smb request takes longer than 45 seconds, log info to afsd_init.log
that might be helpful in determining patterns in the smb client disconnects
(cherry picked from commit 0c7d7ce3b8386a1aca6d1fc3d738c8621708eb95)
LICENSE MIT
add the error preprocessor symbol to the error string
if both an NRC_BRIDGE and NRC_NOWILD error are received within
the smb_Listener thread, try re-adding the NetbiosName to the lana
before giving up and quiting.
(cherry picked from commit 622f9b0de85f2a45d3a327cd8b8bea470dba9862)
LICENSE MIT
When reporting the attribute of a directory name which happens to be
a symlink object to a file that cannot be accessed or does not exist,
use the target name to guess the type of the object. If it has an
extension, consider it a file, otherwise report it as a directory.
(cherry picked from commit f9191fdebcf694f1a6afac8c0f4679c35114ce93)
LICENSE MIT
use WNetEnumXXX functions to list connected disk resources.
If the requested drive letter is an AFS resource, perform the pioctl
test. If it is not, fail immediately.
(cherry picked from commit 75f496df1727a5b1d00809fcf493c7c815c90816)
LICENSE MIT
windows-afsreg-20081017 wraps strings for wide char usage.
use the wide char versions of win32 apis to match.
(cherry picked from commit 4c79498bc3dd87cb45d1827133aff3c93c2caff8)
LICENSE MIT
wrap all text strings with TEXT() to permit use with wide char functions
(cherry picked from commit 81a921759520b03088ddcc37c1c624c0641981fc)
LICENSE MIT
update copyright dates
remove old AFS IFS entries
delete afslogon* and afscpcc.* from $SYSDIR
correct install location of afslogon.dll in WinLogon\Notify registry key
(cherry picked from commit c3251a3b18a83bf66d4d2f0a549fa573eccbdde2)
LICENSE MIT
log more data to afsd_init.log regarding events that
can cause the netbios name registration to become
invalid.
(cherry picked from commit bfd01550bddcce18f6f76e97231e21680a545e3f)
LICENSE MIT
FIXES 116641
Do not use the DNLC if the name when converted from Unicode is NULL.
(cherry picked from commit e0298d5f09d7e791aeb0f98438e299ad1faf186a)
LICENSE MIT
FIXES 116641
Do not drop references to 'nextp' until we are done with the object.
Dropping the last reference can result in the object being destroyed.
(cherry picked from commit 1115e29dacab98ed29ec603edfdaa8f697507daa)
LICENSE IPL10
FIXES 116603
sort out rcu locking versus tasklist lock. if this fails we probably have to
disable walking entirely
(cherry picked from commit 24ce8010cd414c8c573f2b035d186a2418900546)
LICENSE IPL10
FIXES 121254
don't do duplicate work finding a vcache we already had
(cherry picked from commit 7c6fac305c81af3e10f48560c03db4d2da630527)