parsav  Diff

Differences From Artifact [b40be7a821]:

To Artifact [600c3c1067]:


   115    115   		elseif tmppw[i] >= 10 then
   116    116   			tmppw[i] = tmppw[i] + (0x41 - 10)
   117    117   		else tmppw[i] = tmppw[i] + 0x30 end
   118    118   	end
   119    119   	lib.dbg('assigning temporary password')
   120    120   	dlg:auth_attach_pw(uid, reset,
   121    121   		pstr { ptr = [rawstring](tmppw), ct = 32 },
   122         -		lib.str.plit 'temporary password');
          122  +		'temporary password');
   123    123   end
   124    124   
   125    125   local terra ipc_report(acks: lib.mem.ptr(lib.ipc.ack), rep: rawstring)
   126    126   	var decbuf: int8[21]
   127    127   	for i=0,acks.ct do
   128    128   		var num = lib.math.decstr(acks(i).clid, &decbuf[20])
   129    129   		if acks(i).success then
................................................................................
   379    379   				if cfmode.help then
   380    380   					[ lib.emit(false, 1, 'usage: ', `argv[0], ' mkroot ', cfmode.type.helptxt.flags, ' <handle>', cfmode.type.helptxt.opts) ]
   381    381   					return 1
   382    382   				end
   383    383   				if cfmode.arglist.ct == 1 then
   384    384   					var am = dlg:conf_get('credential-store')
   385    385   					var mg: bool
   386         -					if (not am) or am:cmp(lib.str.plit 'managed') then
          386  +					if (not am) or am:cmp('managed') then
   387    387   						mg = true
   388         -					elseif am:cmp(lib.str.plit 'unmanaged') then
          388  +					elseif am:cmp('unmanaged') then
   389    389   						lib.warn('credential store is unmanaged; you will need to create credentials for the new root user manually!')
   390    390   						mg = false
   391    391   					else lib.bail('unknown credential store mode "',{am.ptr,am.ct},'"; should be either "managed" or "unmanaged"') end
   392    392   					var kbuf: uint8[lib.crypt.const.maxdersz]
   393    393   					var root = lib.store.actor.mk(&kbuf[0])
   394    394   					root.handle = cfmode.arglist(0)
   395    395   					var epithets = array(