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

Laurent Dufour ldufour at linux.vnet.ibm.com
Thu Nov 5 07:52:23 PST 2015


On 05/11/2015 13:36, Pavel Emelyanov wrote:
> On 11/03/2015 05:47 PM, Laurent Dufour wrote:
>> 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.
> 
> Thanks! But Tycho already sent the same fix, so it's already in the master :)

Sorry for the noise, I missed the Tycho's patch.

>> 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
>>
> 
> _______________________________________________
> CRIU mailing list
> CRIU at openvz.org
> https://lists.openvz.org/mailman/listinfo/criu
> 



More information about the CRIU mailing list