[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] console-check: Add missing error check
From: |
Etienne Brateau |
Subject: |
[PATCH] console-check: Add missing error check |
Date: |
Tue, 12 Mar 2024 23:03:11 +0100 |
---
console-client/trans.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/console-client/trans.c b/console-client/trans.c
index 27ea5418..0c961c2f 100644
--- a/console-client/trans.c
+++ b/console-client/trans.c
@@ -896,6 +896,8 @@ console_setup_node (char *path)
err = file_set_translator (node, 0, FS_TRANS_EXCL | FS_TRANS_SET, 0, 0, 0,
right, MACH_MSG_TYPE_COPY_SEND);
mach_port_deallocate (mach_task_self (), right);
+ if (err)
+ error (1, err, "Cannot set translator on underlying node");
err = io_stat (node, &ul_stat);
if (err)
--
2.44.0
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] console-check: Add missing error check,
Etienne Brateau <=