ref: a1504467097cffa234151da6cbbdc0d94053098e
parent: 5e3588659f7163fb67e31f67cdc8011ca399dc1f
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Tue Oct 23 04:55:26 EDT 2012
create bio file (/adm/keys.who) if it doesnt exist
--- a/sys/src/cmd/auth/lib/wrbio.c
+++ b/sys/src/cmd/auth/lib/wrbio.c
@@ -11,8 +11,11 @@
int i, fd, n;
fd = open(file, OWRITE);
- if(fd < 0)
- error("can't open %s", file);+ if(fd < 0){+ fd = create(file, OWRITE, 0660);
+ if(fd < 0)
+ error("can't create %s", file);+ }
if(seek(fd, 0, 2) < 0)
error("can't seek %s", file);--
⑨