projects
/
u
/
mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Quick compilation tool.
[u/mdw/catacomb]
/
noise.c
diff --git
a/noise.c
b/noise.c
index
a78a790
..
ed2d83c
100644
(file)
--- a/
noise.c
+++ b/
noise.c
@@
-1,8
+1,8
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: noise.c,v 1.
3 1999/12/10 23:24:11
mdw Exp $
+ * $Id: noise.c,v 1.
5 1999/12/22 15:57:55
mdw Exp $
*
*
- * Acquisition of environmental noise (Unix
specific)
+ * Acquisition of environmental noise (Unix
-
specific)
*
* (c) 1998 Straylight/Edgeware
*/
*
* (c) 1998 Straylight/Edgeware
*/
@@
-30,6
+30,12
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: noise.c,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: noise.c,v $
+ * Revision 1.5 1999/12/22 15:57:55 mdw
+ * Label system-specific parts more clearly.
+ *
+ * Revision 1.4 1999/12/10 23:25:15 mdw
+ * Bug fix: remove old spurious fflush.
+ *
* Revision 1.3 1999/12/10 23:24:11 mdw
* Bug fix: flush buffers before forking.
*
* Revision 1.3 1999/12/10 23:24:11 mdw
* Bug fix: flush buffers before forking.
*
@@
-203,7
+209,7
@@
int noise_devrandom(rand_pool *r)
* Use: Sets the user and group ids to be used by @noise_filter@
* when running child processes. This is useful to avoid
* giving shell commands (even carefully written ones) undue
* Use: Sets the user and group ids to be used by @noise_filter@
* when running child processes. This is useful to avoid
* giving shell commands (even carefully written ones) undue
- * privileges.
+ * privileges.
This interface is Unix-specific
*/
void noise_setid(uid_t uid, gid_t gid)
*/
void noise_setid(uid_t uid, gid_t gid)
@@
-231,6
+237,8
@@
void noise_setid(uid_t uid, gid_t gid)
* fails to complete within a short time period, it is killed.
* Paranoid use of close-on-exec flags for file descriptors is
* recommended.
* fails to complete within a short time period, it is killed.
* Paranoid use of close-on-exec flags for file descriptors is
* recommended.
+ *
+ * This interface is Unix-specific.
*/
int noise_filter(rand_pool *r, int good, const char *c)
*/
int noise_filter(rand_pool *r, int good, const char *c)
@@
-267,7
+275,6
@@
int noise_filter(rand_pool *r, int good, const char *c)
/* --- Handle the child end of the deal --- */
/* --- Handle the child end of the deal --- */
- fflush(0);
if (kid == 0) {
int f;
if (kid == 0) {
int f;