[OE-core] [PATCH] busybox: update flock behavior to match upstream
Phil Blundell
pb at pbcl.net
Tue Jan 17 12:59:37 UTC 2017
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.
More information about the Openembedded-core
mailing list