Whamcloud - gitweb
libuuid: Make sure execl() variadic function is properly terminated
authorTheodore Ts'o <tytso@mit.edu>
Sun, 27 Jan 2008 05:22:52 +0000 (00:22 -0500)
committerTheodore 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

index 78fb336..9254eb6 100644 (file)
@@ -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);