Merge remote-tracking branch 'qubesos/pr/19'
* qubesos/pr/19: qvm-create: Don't allow the user to manually create dispNN names
This commit is contained in:
commit
bc1c3c2cc0
@ -130,6 +130,10 @@ def main():
|
||||
if options.offline_mode:
|
||||
vmm.offline_mode = True
|
||||
|
||||
if re.match('^disp\d+$', vmname):
|
||||
print >> sys.stderr, 'The name "{0}" is reserved for internal use.'.format(vmname)
|
||||
exit(1)
|
||||
|
||||
qvm_collection = QubesVmCollection()
|
||||
qvm_collection.lock_db_for_writing()
|
||||
qvm_collection.load()
|
||||
|
Loading…
Reference in New Issue
Block a user