Author: oxygene Date: 2008-09-30 12:40:03 +0200 (Tue, 30 Sep 2008) New Revision: 72
Modified: trunk/filo/main/grub/builtins.c Log: fix for "configfile" without a file name. it runs "help configfile" in that case
fixes #12
Modified: trunk/filo/main/grub/builtins.c =================================================================== --- trunk/filo/main/grub/builtins.c 2008-09-30 10:38:32 UTC (rev 71) +++ trunk/filo/main/grub/builtins.c 2008-09-30 10:40:03 UTC (rev 72) @@ -247,6 +247,7 @@ " "blink-" to FG if you want a blinking foreground color." };
+static int help_func(char *arg, int flags); /* configfile */ static int configfile_func(char *arg, int flags) { @@ -255,6 +256,9 @@ /* Check if the file ARG is present. */ temp_space[0]=0; copy_path_to_filo_bootline(arg, temp_space, 1); + if (temp_space[0]==0) { + return help_func("configfile",0); + } if (!file_open(temp_space)) { errnum = ERR_FILE_NOT_FOUND; return 1;