On Thu, 2016-04-21 at 12:24 +0300, Maxin B. John wrote:
> 
+-
> +-    if (argv[0])
> +-            return spawn_and_wait(argv);
> +-
> ++    if (argv[0]) {
> ++        cmd_args[0] = getenv("SHELL");
> ++        if (!cmd_args[0])
> ++            cmd_args[0] = (char*)DEFAULT_SHELL;
> ++        cmd_args[1] = (char*)"-c";
> ++        cmd_args[2] = argv[0];
> ++        cmd_args[3] = NULL;
> ++        return spawn_and_wait(cmd_args);
> ++    }
> +     return EXIT_SUCCESS;
> + }
> 

This patch seems to completely break the behaviour of flock when
invoked without "-c".  For example, compare the behaviour of:

flock /tmp/lock echo it works

before and after.  Please revert this patch until and unless it can be
fixed.

p.

-- 
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to