Commit 8e5dc8a1 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov

crtools: Allow to not specify a pid if to show a file contents

Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
parent 344ccb36
......@@ -328,8 +328,8 @@ int main(int argc, char *argv[])
}
if (!has_pid) {
pr_err("No pid specified, -t or -p option missed?\n");
return -1;
if (action != 's' || !opts.show_single_file)
goto opt_pid_missing;
}
switch (action) {
......@@ -371,4 +371,8 @@ usage:
printk("\n");
return -1;
opt_pid_missing:
printk("No pid specified, -t or -p option missed?\n");
return -1;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment