git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
heimdal: update to lorikeet-heimdal rev 801
[sfrench/samba-autobuild/.git]
/
source4
/
heimdal
/
lib
/
hcrypto
/
rand-unix.c
diff --git
a/source4/heimdal/lib/hcrypto/rand-unix.c
b/source4/heimdal/lib/hcrypto/rand-unix.c
index 354492fb3db5d431ab82e6e1bbcfa0d9393180ee..5fb099d724604be175b4ba43583d6bd6b804e798 100644
(file)
--- a/
source4/heimdal/lib/hcrypto/rand-unix.c
+++ b/
source4/heimdal/lib/hcrypto/rand-unix.c
@@
-35,7
+35,7
@@
#include <config.h>
#endif
#include <config.h>
#endif
-RCSID("$Id: rand-unix.c 2
0028 2007-01-21 09:54:56
Z lha $");
+RCSID("$Id: rand-unix.c 2
3462 2008-07-27 12:14:42
Z lha $");
#include <stdio.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
@@
-63,8
+63,10
@@
get_device_fd(int flags)
for(p = rnd_devices; *p; p++) {
int fd = open(*p, flags | O_NDELAY);
for(p = rnd_devices; *p; p++) {
int fd = open(*p, flags | O_NDELAY);
- if(fd >= 0)
+ if(fd >= 0) {
+ rk_cloexec(fd);
return fd;
return fd;
+ }
}
return -1;
}
}
return -1;
}