fixup! gluon-web-admin: use util.popen3 in remote.lua
This commit is contained in:
		
							parent
							
								
									2502b2c6c0
								
							
						
					
					
						commit
						939720deb9
					
				@ -75,9 +75,9 @@ function pw2.cfgvalue()
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
local function set_password(password)
 | 
			
		||||
	local policies = {[unistd.STDIN_FILENO]=util.subprocess.PIPE,
 | 
			
		||||
			  [unistd.STDOUT_FILENO]=util.subprocess.DEVNULL,
 | 
			
		||||
			  [unistd.STDERR_FILENO]=util.subprocess.DEVNULL}
 | 
			
		||||
	local policies = {[unistd.STDIN_FILENO] = util.subprocess.PIPE,
 | 
			
		||||
			  [unistd.STDOUT_FILENO] = util.subprocess.DEVNULL,
 | 
			
		||||
			  [unistd.STDERR_FILENO] = util.subprocess.DEVNULL}
 | 
			
		||||
 | 
			
		||||
	local pid, pipe = util.subprocess.popen(policies, 'passwd', {[0] = 'passwd'})
 | 
			
		||||
	local inw = pipe[unistd.STDIN_FILENO]
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user