chiark
/
gitweb
/
~mdw
/
disorder
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9fbe099
)
correct comment
author
Richard Kettlewell
<rjk@greenend.org.uk>
Sat, 20 Oct 2007 14:37:33 +0000
(15:37 +0100)
committer
Richard Kettlewell
<rjk@greenend.org.uk>
Sat, 20 Oct 2007 14:37:33 +0000
(15:37 +0100)
clients/authorize.c
patch
|
blob
|
blame
|
history
diff --git
a/clients/authorize.c
b/clients/authorize.c
index 966983cda330b19df1b8b72389b820e3a6d22421..22c321f815b3fff1c6f532f3997d3c51dec141e3 100644
(file)
--- a/
clients/authorize.c
+++ b/
clients/authorize.c
@@
-1,6
+1,6
@@
/*
* This file is part of DisOrder
/*
* This file is part of DisOrder
- * Copyright (C) 2005 Richard Kettlewell
+ * Copyright (C) 2005
, 2007
Richard Kettlewell
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@
-60,7
+60,7
@@
int authorize(const char *user) {
gcry_randomize(pwbin, sizeof pwbin, GCRY_STRONG_RANDOM);
pwhex = hex(pwbin, sizeof pwbin);
gcry_randomize(pwbin, sizeof pwbin, GCRY_STRONG_RANDOM);
pwhex = hex(pwbin, sizeof pwbin);
- /* create config.USER, to end up with mode 4
40 user:jukebox
*/
+ /* create config.USER, to end up with mode 4
00 user:<anything>
*/
if((fd = open(t, O_WRONLY|O_CREAT|O_EXCL, 0600)) < 0)
fatal(errno, "error creating %s", t);
if(fchown(fd, pw->pw_uid, -1) < 0)
if((fd = open(t, O_WRONLY|O_CREAT|O_EXCL, 0600)) < 0)
fatal(errno, "error creating %s", t);
if(fchown(fd, pw->pw_uid, -1) < 0)