Skip to content

Commit df2ce36

Browse files
committed
LXC.run_command: handle enoexec and enoent
1 parent 2d171f9 commit df2ce36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/lxc/lxc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ lxc_run_command(VALUE self, VALUE rb_command)
109109
cmd.argv = ruby_to_c_string_array(rb_command);
110110

111111
ret = lxc_attach_run_command(&cmd);
112-
if (ret == -1)
112+
if (ret == -1 || ret == 126 || ret == 127)
113113
rb_raise(Error, "unable to run command on attached container");
114114
/* NOTREACHED */
115115
return Qnil;

0 commit comments

Comments
 (0)