summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine Ginies <aginies@mandriva.com>2011-03-08 13:56:38 +0000
committerAntoine Ginies <aginies@mandriva.com>2011-03-08 13:56:38 +0000
commit0cc364841b6c5f2b93d1010506297652877a5b7a (patch)
tree7d4ee1b2d3eb38125ab3aaee2d24bf0c142078ef
parentbf0624d9258d32f15d6606bbd1390b5a55b34eb3 (diff)
downloaddrakx-backup-do-not-use-0cc364841b6c5f2b93d1010506297652877a5b7a.tar
drakx-backup-do-not-use-0cc364841b6c5f2b93d1010506297652877a5b7a.tar.gz
drakx-backup-do-not-use-0cc364841b6c5f2b93d1010506297652877a5b7a.tar.bz2
drakx-backup-do-not-use-0cc364841b6c5f2b93d1010506297652877a5b7a.tar.xz
drakx-backup-do-not-use-0cc364841b6c5f2b93d1010506297652877a5b7a.zip
dont close stderr
-rw-r--r--mdk-stage1/ka.c4
-rw-r--r--mdk-stage1/params.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/mdk-stage1/ka.c b/mdk-stage1/ka.c
index 670abe5af..c5f243828 100644
--- a/mdk-stage1/ka.c
+++ b/mdk-stage1/ka.c
@@ -53,8 +53,8 @@ static enum return_type ka_wait_for_stage2(int count)
int pida, wait_status;
if (!(pida = fork())) { /* Forking current process for running mkfs */
- //close(1);
- close(2);
+ close(1);
+ //close(2);
execv(mkfs_launch[0], mkfs_launch); /* Formating the ramdisk */
printf("KA: Can't execute %s\n<press Enter>\n", mkfs_launch[0]);
my_pause();
diff --git a/mdk-stage1/params.c b/mdk-stage1/params.c
index efce95115..426735d3c 100644
--- a/mdk-stage1/params.c
+++ b/mdk-stage1/params.c
@@ -82,7 +82,7 @@ void process_cmdline(void)
if (!strcmp(name, "updatemodules") ||
!strcmp(name, "thirdparty")) set_param(MODE_THIRDPARTY);
if (!strcmp(name, "rescue") ||
- !strcmp(name, "kamethod")) set_param(MODE_RESCUE);
+ !strcmp(name, "kamethod")) set_param(MODE_RESCUE);
if (!strcmp(name, "keepmounted")) set_param(MODE_KEEP_MOUNTED);
if (!strcmp(name, "noauto")) set_param(MODE_NOAUTO);
if (!strcmp(name, "netauto")) set_param(MODE_NETAUTO);