Fix ubinfo utility and make it handle -d parameter correctly.
Without this patch it simple refuses working with -d.
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
* Author: Artem Bityutskiy
*/
-#include <stdio.h>
#include <stdint.h>
+#include <stdio.h>
#include <getopt.h>
#include <stdlib.h>
#include <string.h>
if (err)
return -1;
- if (!args.node && args.devn != -1)
- return errmsg("specify either device number or node file (use -h for help)");
-
libubi = libubi_open(1);
if (libubi == NULL)
return sys_errmsg("cannot open libubi");