|
@@ -1073,7 +1073,7 @@ static void setUserDescriptor(Linked<IUserDescriptor> &udesc,IUserDescriptor *us
|
|
|
{
|
|
|
if (!user)
|
|
|
{
|
|
|
-#ifndef _NO_DALIUSER_STACKTRACE
|
|
|
+#ifdef NULL_DALIUSER_STACKTRACE
|
|
|
StringBuffer sb;
|
|
|
if (user)
|
|
|
user->getUserName(sb);
|
|
@@ -1098,7 +1098,7 @@ static int getScopePermissions(const char *scopename,IUserDescriptor *user,unsig
|
|
|
if (permissionsavail&&scopename&&*scopename&&((*scopename!='.')||scopename[1])) {
|
|
|
if (!user)
|
|
|
{
|
|
|
-#ifndef _NO_DALIUSER_STACKTRACE
|
|
|
+#ifdef NULL_DALIUSER_STACKTRACE
|
|
|
DBGLOG("UNEXPECTED USER (NULL) in dadfs.cpp getScopePermissions() line %d",__LINE__);
|
|
|
//following debug code to be removed
|
|
|
PrintStackReport();
|
|
@@ -1128,7 +1128,7 @@ static void checkLogicalScope(const char *scopename,IUserDescriptor *user,bool r
|
|
|
auditflags |= (DALI_LDAP_AUDIT_REPORT|DALI_LDAP_READ_WANTED);
|
|
|
if (createreq)
|
|
|
auditflags |= (DALI_LDAP_AUDIT_REPORT|DALI_LDAP_WRITE_WANTED);
|
|
|
-#ifndef _NO_DALIUSER_STACKTRACE
|
|
|
+#ifdef NULL_DALIUSER_STACKTRACE
|
|
|
if (!user)
|
|
|
{
|
|
|
DBGLOG("UNEXPECTED USER (NULL) in dadfs.cpp checkLogicalScope() line %d",__LINE__);
|
|
@@ -7878,7 +7878,7 @@ void CDistributedFileDirectory::renamePhysical(const char *oldname,const char *n
|
|
|
{
|
|
|
if (!user)
|
|
|
{
|
|
|
-#ifndef _NO_DALIUSER_STACKTRACE
|
|
|
+#ifdef NULL_DALIUSER_STACKTRACE
|
|
|
DBGLOG("UNEXPECTED USER (NULL) in dadfs.cpp CDistributedFileDirectory::renamePhysical %d",__LINE__);
|
|
|
//following debug code to be removed
|
|
|
PrintStackReport();
|
|
@@ -9357,7 +9357,7 @@ IDFAttributesIterator *CDistributedFileDirectory::getDFAttributesIterator(const
|
|
|
mb.append((int)MDFS_ITERATE_FILES).append(wildname).append(recursive).append("").append(includesuper); // "" is legacy
|
|
|
if (user)
|
|
|
user->serialize(mb);
|
|
|
-#ifndef _NO_DALIUSER_STACKTRACE
|
|
|
+#ifdef NULL_DALIUSER_STACKTRACE
|
|
|
else
|
|
|
{
|
|
|
DBGLOG("UNEXPECTED USER (NULL) in dadfs.cpp getDFAttributesIterator() line %d",__LINE__);
|
|
@@ -9488,7 +9488,7 @@ void CDistributedFileDirectory::setFileAccessed(CDfsLogicalFileName &dlfn,IUserD
|
|
|
dt.serialize(mb);
|
|
|
if (user)
|
|
|
user->serialize(mb);
|
|
|
-#ifndef _NO_DALIUSER_STACKTRACE
|
|
|
+#ifdef NULL_DALIUSER_STACKTRACE
|
|
|
else
|
|
|
{
|
|
|
DBGLOG("UNEXPECTED USER (NULL) in dadfs.cpp setFileAccessed() line %d",__LINE__);
|
|
@@ -9527,7 +9527,7 @@ void CDistributedFileDirectory::setFileProtect(CDfsLogicalFileName &dlfn,IUserDe
|
|
|
mb.append((int)MDFS_SET_FILE_PROTECT).append(lname).append(owner).append(set);
|
|
|
if (user)
|
|
|
user->serialize(mb);
|
|
|
-#ifndef _NO_DALIUSER_STACKTRACE
|
|
|
+#ifdef NULL_DALIUSER_STACKTRACE
|
|
|
else
|
|
|
{
|
|
|
DBGLOG("UNEXPECTED USER (NULL) in dadfs.cpp setFileProtect() line %d",__LINE__);
|
|
@@ -9562,7 +9562,7 @@ IPropertyTree *CDistributedFileDirectory::getFileTree(const char *lname, IUserDe
|
|
|
mb.append(MDFS_GET_FILE_TREE_V2);
|
|
|
if (user)
|
|
|
user->serialize(mb);
|
|
|
-#ifndef _NO_DALIUSER_STACKTRACE
|
|
|
+#ifdef NULL_DALIUSER_STACKTRACE
|
|
|
else
|
|
|
{
|
|
|
DBGLOG("UNEXPECTED USER (NULL) in dadfs.cpp getFileTree() line %d",__LINE__);
|