]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
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 78fb336f4527608a27d6b9eb7e5d1bc1cedab0ab..9254eb68d1381bdf6148ab9f82581bf13b0e3921 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);