mirror of
				https://github.com/samba-team/samba.git
				synced 2025-11-04 00:23:49 +03:00 
			
		
		
		
	r25430: Add the loadparm context to all parametric options.
This commit is contained in:
		
				
					committed by
					
						
						Gerald (Jerry) Carter
					
				
			
			
				
	
			
			
			
						parent
						
							b945aaa9da
						
					
				
				
					commit
					fd697d77c9
				
			@@ -105,7 +105,7 @@ static int ejs_lpGet(MprVarHandle eid, int argc, char **argv)
 | 
			
		||||
				mpr_Return(eid, mprCreateUndefinedVar());
 | 
			
		||||
				return 0;
 | 
			
		||||
			}
 | 
			
		||||
			value = lp_get_parametric(service, type, option);
 | 
			
		||||
			value = lp_get_parametric(global_loadparm, service, type, option);
 | 
			
		||||
			if (value == NULL) {
 | 
			
		||||
				mpr_Return(eid, mprCreateUndefinedVar());
 | 
			
		||||
				return 0;
 | 
			
		||||
@@ -130,7 +130,7 @@ static int ejs_lpGet(MprVarHandle eid, int argc, char **argv)
 | 
			
		||||
			mpr_Return(eid, mprCreateUndefinedVar());
 | 
			
		||||
			return 0;
 | 
			
		||||
		}
 | 
			
		||||
		value = lp_get_parametric(NULL, type, option);
 | 
			
		||||
		value = lp_get_parametric(global_loadparm, NULL, type, option);
 | 
			
		||||
		if (value == NULL) {
 | 
			
		||||
			mpr_Return(eid, mprCreateUndefinedVar());
 | 
			
		||||
			return 0;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user