mirror of
https://github.com/AuxXxilium/eudev.git
synced 2025-01-15 00:26:56 +07:00
main: don't warn if /etc/mtab is a symlink to /proc/mounts
This commit is contained in:
parent
cae18e2172
commit
ed86ebc414
@ -899,7 +899,7 @@ static void test_mtab(void) {
|
|||||||
if (readlink_malloc("/etc/mtab", &p) >= 0) {
|
if (readlink_malloc("/etc/mtab", &p) >= 0) {
|
||||||
bool b;
|
bool b;
|
||||||
|
|
||||||
b = streq(p, "/proc/self/mounts");
|
b = streq(p, "/proc/self/mounts") || streq(p, "/proc/mounts");
|
||||||
free(p);
|
free(p);
|
||||||
|
|
||||||
if (b)
|
if (b)
|
||||||
|
Loading…
Reference in New Issue
Block a user