diff options
author | 2015-12-09 01:23:26 +0000 | |
---|---|---|
committer | 2015-12-09 01:23:26 +0000 | |
commit | ceb0e8203f30e4a152c96b617fa823adef38e395 (patch) | |
tree | 3137010174625967579a23dfd2e0efa8efcdedf1 | |
parent | add braces to correct pledge logic (diff) | |
download | wireguard-openbsd-ceb0e8203f30e4a152c96b617fa823adef38e395.tar.xz wireguard-openbsd-ceb0e8203f30e4a152c96b617fa823adef38e395.zip |
Don't expose XenStore ops we don't know how to deal with
-rw-r--r-- | sys/dev/pv/xenstore.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/dev/pv/xenstore.c b/sys/dev/pv/xenstore.c index 18696dc6648..2d7955d5c9d 100644 --- a/sys/dev/pv/xenstore.c +++ b/sys/dev/pv/xenstore.c @@ -701,16 +701,12 @@ xs_cmd(struct xs_transaction *xst, int cmd, const char *path, return (-1); switch (cmd) { - case XS_TRANSACTION_START: + case XS_TOPEN: ov[0].iov_base = ""; ov[0].iov_len = 1; ov_cnt++; break; - case XS_TRANSACTION_END: - mode = WRITE; - break; - case XS_MKDIR: - case XS_RM: + case XS_TCLOSE: case XS_WRITE: mode = WRITE; /* FALLTHROUGH */ |