[PATCH] add exec -a support (preliminary)

Patrick Pief p.pief at zoho.com
Sat Jan 28 01:49:51 UTC 2017


I just noticed that I have a little bug in there, triggered through
"exec -a foo" with no parameter following, it can be fixed by replacing the
line

    if (strcmp(argv[1], "-a") == 0 && argv[2]) {

with

    if (strcmp(argv[1], "-a") == 0 && argv[2] && argv[3]) {

to check whether an argument after "-a something" exists.

-Patrick




More information about the busybox mailing list