X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fprocd.git;a=blobdiff_plain;f=early.c;h=e86e4dd1ad368907b63705e1e68be60c53d67f9a;hp=f9e3277933fc051e786ca0c4dc6df33e719d4d4c;hb=824a4b3da2c0be19ccf54a48dcd4c10677b82c1a;hpb=eed8e77dcf5b9ce9c21919ea6d549b5dd92bb18a diff --git a/early.c b/early.c index f9e3277..e86e4dd 100644 --- a/early.c +++ b/early.c @@ -49,8 +49,10 @@ static void early_console(const char *dev) struct stat s; int dd; - if (stat(dev, &s)) - mkdev("*console", 0600); + if (stat(dev, &s)) { + ERROR("Failed to stat %s\n", dev); + return; + } dd = open(dev, O_RDWR); if (dd < 0) {