[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [PATCH] add exec -a support (preliminary)
From:       Patrick Pief <p.pief () zoho ! com>
Date:       2017-01-28 1:49:51
Message-ID: 159e2c3ad0a.10fcc15bd5671.3227546299294162980 () zoho ! com
[Download RAW message or body]

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


_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic