X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/36be7e6a505753eb31ed165084c729c7efa40534..66bb2e02f95baed39eac2f3b1b11053d1e2a4c21:/server/setup.c diff --git a/server/setup.c b/server/setup.c index 47cbc87..4ccb00e 100644 --- a/server/setup.c +++ b/server/setup.c @@ -66,8 +66,10 @@ void make_root_login(void) { gcry_randomize(pwbin, sizeof pwbin, GCRY_STRONG_RANDOM); pwhex = hex(pwbin, sizeof pwbin); /* Create the file */ - if((fd = open(privconfignew, O_WRONLY|O_CREAT, 0600)) < 0) - fatal(errno, "error creating %s", privconfignew); + if((fd = open(privconfignew, O_WRONLY|O_CREAT, 0600)) < 0) { + error(errno, "error creating %s", privconfignew); + return; /* not fatal! */ + } /* Fix permissions */ if(pw) { if(fchown(fd, 0, pw->pw_gid) < 0)