diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-01-24 23:32:16 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-01-24 23:32:16 +0000 |
commit | 50338b23d34db704d378f00a92f7f10235edff68 (patch) | |
tree | 9c05fa92a2fcd512bd7ced717229a89af87511f8 | |
parent | 0cf09a2c030482e2dcb682f2b64ceecc66133ce2 (diff) |
OK, loadrandom should not care about EPERM I suppose
-rw-r--r-- | sys/stand/boot/boot.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/stand/boot/boot.c b/sys/stand/boot/boot.c index f27dc84b478..0e7089fee79 100644 --- a/sys/stand/boot/boot.c +++ b/sys/stand/boot/boot.c @@ -1,4 +1,4 @@ -/* $OpenBSD: boot.c,v 1.41 2014/01/24 05:24:07 deraadt Exp $ */ +/* $OpenBSD: boot.c,v 1.42 2014/01/24 23:32:15 deraadt Exp $ */ /* * Copyright (c) 2003 Dale Rahn @@ -147,6 +147,8 @@ loadrandom(char *name, char *buf, size_t buflen) fd = open(path, O_RDONLY); if (fd == -1) { + if (errno == EPERM) + goto fail; printf("cannot open %s: %s\n", path, strerror(errno)); return; } |