2008-07-02 Pavel Roskin <proski@gnu.org>

* util/grub-editenv.c (main): Be specific which parameter is
	missing.
This commit is contained in:
proski 2008-07-02 20:51:46 +00:00
parent b8fbce0ab9
commit cbabfdd464
2 changed files with 10 additions and 1 deletions

View file

@ -1,5 +1,8 @@
2008-07-02 Pavel Roskin <proski@gnu.org> 2008-07-02 Pavel Roskin <proski@gnu.org>
* util/grub-editenv.c (main): Be specific which parameter is
missing.
* disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings. * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
(memdisk): Make memdisk_orig_addr a pointer. (memdisk): Make memdisk_orig_addr a pointer.

View file

@ -226,9 +226,15 @@ main (int argc, char *argv[])
} }
/* Obtain PATH. */ /* Obtain PATH. */
if (optind >= argc)
{
fprintf (stderr, "Filename not specified.\n");
usage (1);
}
if (optind + 1 >= argc) if (optind + 1 >= argc)
{ {
fprintf (stderr, "Not enough parameter.\n"); fprintf (stderr, "Command not specified.\n");
usage (1); usage (1);
} }