util: report a command name in error messages for cr_system()

Submitted by root on Aug. 9, 2017, 11:21 p.m.

Details

Message ID 20170809232153.5773-1-avagin@openvz.org
State New
Headers show

Commit Message

root Aug. 9, 2017, 11:21 p.m.
From: Andrei Vagin <avagin@virtuozzo.com>

It is good to know what command were executed.

https://github.com/xemul/criu/issues/371
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
---
 criu/util.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/criu/util.c b/criu/util.c
index 7404652e3..b5a161f18 100644
--- a/criu/util.c
+++ b/criu/util.c
@@ -702,7 +702,7 @@  int cr_system_userns(int in, int out, int err, char *cmd,
 
 		execvp(cmd, argv);
 
-		pr_perror("exec failed");
+		pr_perror("exec(%s, ...) failed", cmd);
 out_chld:
 		_exit(1);
 	}

Comments

Pavel Emelyanov Aug. 15, 2017, 10:31 a.m.
Applied