ref: 1ade17eccc4bb4f8ead1b2e0ecbba46739a40f67
parent: ec252421166a37efd0753188ee19aa13149474ec
author: 9ferno <[email protected]>
date: Mon Nov 15 01:26:47 EST 2021
capture the exception if /mnt/keys is not a mount
--- a/appl/cmd/styxlisten.b
+++ b/appl/cmd/styxlisten.b
@@ -97,7 +97,14 @@
if (c == nil)
error(sys->sprint("cannot announce on %s: %r", addr));
if(!trusted){
- sys->unmount(nil, "/mnt/keys"); # should do for now
+ (ok, nil) := sys->stat("/mnt/keys");
+ if(ok == 0) {
+ {
+ sys->unmount(nil, "/mnt/keys"); # should do for now
+ } exception {
+ "*" => ; # ignore it
+ }
+ }
# become none?
}