mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-20 05:11:46 +03:00
clay: desk name sanity check
Ensures no desk with an illegal name can be created by sanity checking in `%fuse`, `%park`, and `%merge`.
This commit is contained in:
parent
463a94101a
commit
62b6e8c8f8
@ -4828,6 +4828,8 @@
|
|||||||
%merg :: direct state up
|
%merg :: direct state up
|
||||||
?: =(%$ des.req)
|
?: =(%$ des.req)
|
||||||
~&(%merg-no-desk !!)
|
~&(%merg-no-desk !!)
|
||||||
|
?. ((sane %tas) des.req)
|
||||||
|
~&(%merg-bad-desk-name !!)
|
||||||
=^ mos ruf
|
=^ mos ruf
|
||||||
=/ den ((de now rof hen ruf) our des.req)
|
=/ den ((de now rof hen ruf) our des.req)
|
||||||
abet:(start-merge:den her.req dem.req cas.req how.req)
|
abet:(start-merge:den her.req dem.req cas.req how.req)
|
||||||
@ -4836,6 +4838,8 @@
|
|||||||
%fuse
|
%fuse
|
||||||
?: =(%$ des.req)
|
?: =(%$ des.req)
|
||||||
~&(%fuse-no-desk !!)
|
~&(%fuse-no-desk !!)
|
||||||
|
?. ((sane %tas) des.req)
|
||||||
|
~&(%fuse-bad-desk-name !!)
|
||||||
=^ mos ruf
|
=^ mos ruf
|
||||||
=/ den ((de now rof hen ruf) our des.req)
|
=/ den ((de now rof hen ruf) our des.req)
|
||||||
abet:(start-fuse:den bas.req con.req)
|
abet:(start-fuse:den bas.req con.req)
|
||||||
@ -4881,6 +4885,8 @@
|
|||||||
[(weld moves-1 moves-2) ..^^$]
|
[(weld moves-1 moves-2) ..^^$]
|
||||||
::
|
::
|
||||||
%park
|
%park
|
||||||
|
?. ((sane %tas) des.req)
|
||||||
|
~&(%park-bad-desk !!)
|
||||||
=^ mos ruf
|
=^ mos ruf
|
||||||
=/ den ((de now rof hen ruf) our des.req)
|
=/ den ((de now rof hen ruf) our des.req)
|
||||||
abet:(park:den | & [yok ran]:req)
|
abet:(park:den | & [yok ran]:req)
|
||||||
|
Loading…
Reference in New Issue
Block a user