From cfbcdac01f4adff22d78b88c0b9b62f691f7db65 Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Tue, 15 Dec 2009 16:42:13 +0100 Subject: sandbox: common: fix device names for environment files (-e) The env%d string got created, but the the hardcoded "env" string was always used instead, causing errors with loading the env. Signed-off-by: Peter Korsgaard Signed-off-by: Sascha Hauer --- arch/sandbox/os/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arch/sandbox/os') diff --git a/arch/sandbox/os/common.c b/arch/sandbox/os/common.c index 90486f889f..d63a2f4063 100644 --- a/arch/sandbox/os/common.c +++ b/arch/sandbox/os/common.c @@ -317,7 +317,7 @@ int main(int argc, char *argv[]) break; case 'e': sprintf(str, "env%d", envno); - ret = add_image(optarg, "env"); + ret = add_image(optarg, str); if (ret) exit(1); envno++; -- cgit v1.2.3