Blame SOURCES/2.24-libmount-mem.patch
|
|
531551 |
diff -up util-linux-2.23.2/libmount/src/context_umount.c.kzak util-linux-2.23.2/libmount/src/context_umount.c
|
|
|
531551 |
--- util-linux-2.23.2/libmount/src/context_umount.c.kzak 2013-10-07 11:43:10.990598629 +0200
|
|
|
531551 |
+++ util-linux-2.23.2/libmount/src/context_umount.c 2013-10-07 11:46:01.051031431 +0200
|
|
|
531551 |
@@ -423,6 +423,8 @@ static int evaluate_permissions(struct l
|
|
|
531551 |
if (optstr && !mnt_optstr_get_option(optstr,
|
|
|
531551 |
"user", &mtab_user, &sz) && sz)
|
|
|
531551 |
ok = !strncmp(curr_user, mtab_user, sz);
|
|
|
531551 |
+
|
|
|
531551 |
+ free(curr_user);
|
|
|
531551 |
}
|
|
|
531551 |
|
|
|
531551 |
if (ok) {
|
|
|
531551 |
diff -up util-linux-2.23.2/libmount/src/utils.c.kzak util-linux-2.23.2/libmount/src/utils.c
|
|
|
531551 |
--- util-linux-2.23.2/libmount/src/utils.c.kzak 2013-07-30 11:15:27.391515623 +0200
|
|
|
531551 |
+++ util-linux-2.23.2/libmount/src/utils.c 2013-10-07 11:43:27.209924834 +0200
|
|
|
531551 |
@@ -159,7 +159,7 @@ int mnt_chdir_to_parent(const char *targ
|
|
|
531551 |
if (!last || !*last)
|
|
|
531551 |
memcpy(*filename, ".", 2);
|
|
|
531551 |
else
|
|
|
531551 |
- memcpy(*filename, last, strlen(last) + 1);
|
|
|
531551 |
+ memmove(*filename, last, strlen(last) + 1);
|
|
|
531551 |
} else
|
|
|
531551 |
free(buf);
|
|
|
531551 |
return 0;
|