OSDN Git Service
(root)
/
android-x86
/
external-toybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make xopen() skip stdin/stdout/stderr, add xopen_stdio() if you want stdout,
[android-x86/external-toybox.git]
/
lib
/
lib.c
diff --git
a/lib/lib.c
b/lib/lib.c
index
5c7696d
..
718ea3a
100644
(file)
--- a/
lib/lib.c
+++ b/
lib/lib.c
@@
-1008,7
+1008,7
@@
int qstrcmp(const void *a, const void *b)
void create_uuid(char *uuid)
{
// Read 128 random bits
- int fd = xopen
("/dev/urandom", O_RDONLY
);
+ int fd = xopen
ro("/dev/urandom"
);
xreadall(fd, uuid, 16);
close(fd);