aboutsummaryrefslogtreecommitdiff
path: root/console-client
diff options
context:
space:
mode:
authorEtienne Brateau <etienne.brateau@gmail.com>2024-03-12 23:03:11 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2024-03-12 23:14:19 +0100
commit623b4ff33a5c8f7ea494f56ac72d947efeedc971 (patch)
treeeec11683f46b95f3d3172c7354d135bd488e897b /console-client
parent036c63db5a4a8caaa88b72cb403e86b83e3e8583 (diff)
downloadhurd-623b4ff33a5c8f7ea494f56ac72d947efeedc971.tar.gz
hurd-623b4ff33a5c8f7ea494f56ac72d947efeedc971.tar.bz2
hurd-623b4ff33a5c8f7ea494f56ac72d947efeedc971.zip
console-check: Add missing error check
Message-ID: <20240312220311.76709-1-etienne.brateau@gmail.com>
Diffstat (limited to 'console-client')
-rw-r--r--console-client/trans.c2
1 files changed, 2 insertions, 0 deletions
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)