[CRIU] [PATCH] zdtm.py: use /usr/bin/env in zdtm.py

Laurent Dufour ldufour at linux.vnet.ibm.com
Tue Nov 3 06:47:38 PST 2015


zdtm fails to run on ubuntu:
$ ./zdtm.py run -a
-bash: ./zdtm.py: /bin/env: bad interpreter: No such file or directory

The root cause is that Debian and Ubuntu (and may be other distro)
doesn't have /bin/env but only /usr/bin/env. Fedora and Red Hat sounds to
provide the both but /usr/bin/env seems to be the standard.

Signed-off-by: Laurent Dufour <ldufour at linux.vnet.ibm.com>
---
 test/zdtm.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/zdtm.py b/test/zdtm.py
index f2c19ac7911e..92fd33f297c6 100755
--- a/test/zdtm.py
+++ b/test/zdtm.py
@@ -1,4 +1,4 @@
-#!/bin/env python
+#!/usr/bin/env python
 import argparse
 import yaml
 import os
-- 
1.9.1



More information about the CRIU mailing list