Ticket #53536: patch-CVE-2017-0358.diff
File patch-CVE-2017-0358.diff, 1.4 KB (added by l2dy (Zero King), 8 years ago) |
---|
-
src/lowntfs-3g.c
old new 4291 4291 struct stat st; 4292 4292 pid_t pid; 4293 4293 const char *cmd = "/sbin/modprobe"; 4294 char *env = (char*)NULL; 4294 4295 struct timespec req = { 0, 100000000 }; /* 100 msec */ 4295 4296 fuse_fstype fstype; 4296 4297 4297 4298 if (!stat(cmd, &st) && !geteuid()) { 4298 4299 pid = fork(); 4299 4300 if (!pid) { 4300 execl (cmd, cmd, "fuse", NULL);4301 execle(cmd, cmd, "fuse", NULL, &env); 4301 4302 _exit(1); 4302 4303 } else if (pid != -1) 4303 4304 waitpid(pid, NULL, 0); -
src/ntfs-3g.c
old new 3885 3885 struct stat st; 3886 3886 pid_t pid; 3887 3887 const char *cmd = "/sbin/modprobe"; 3888 char *env = (char*)NULL; 3888 3889 struct timespec req = { 0, 100000000 }; /* 100 msec */ 3889 3890 fuse_fstype fstype; 3890 3891 3891 3892 if (!stat(cmd, &st) && !geteuid()) { 3892 3893 pid = fork(); 3893 3894 if (!pid) { 3894 execl (cmd, cmd, "fuse", NULL);3895 execle(cmd, cmd, "fuse", NULL, &env); 3895 3896 _exit(1); 3896 3897 } else if (pid != -1) 3897 3898 waitpid(pid, NULL, 0);