Whamcloud - gitweb
git://git.whamcloud.com
/
tools
/
e2fsprogs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69d7422
)
libuuid: Make sure execl() variadic function is properly terminated
author
Theodore Ts'o
<tytso@mit.edu>
Sun, 27 Jan 2008 05:22:52 +0000
(
00:22
-0500)
committer
Theodore Ts'o
<tytso@mit.edu>
Sun, 27 Jan 2008 05:22:52 +0000
(
00:22
-0500)
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/uuid/gen_uuid.c
patch
|
blob
|
history
diff --git
a/lib/uuid/gen_uuid.c
b/lib/uuid/gen_uuid.c
index
78fb336
..
9254eb6
100644
(file)
--- a/
lib/uuid/gen_uuid.c
+++ b/
lib/uuid/gen_uuid.c
@@
-409,7
+409,8
@@
static int get_uuid_via_daemon(int op, uuid_t out, int *num)
access_ret = access(uuidd_path, X_OK);
if (access_ret == 0 && start_attempts++ < 5) {
if ((pid = fork()) == 0) {
- execl(uuidd_path, "uuidd", "-qT", "300", 0);
+ execl(uuidd_path, "uuidd", "-qT", "300",
+ (char *) NULL);
exit(1);
}
(void) waitpid(pid, 0, 0);