From b16b8753a1f1e069c9201818ef2fbad8a76bd2fd Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Mon, 2 Oct 2023 15:09:52 +0000 Subject: [PATCH] mount: Do not call mount with an empty filesystem type Signed-off-by: Michael Tremer --- src/libpakfire/mount.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libpakfire/mount.c b/src/libpakfire/mount.c index 21238e1be..403d42144 100644 --- a/src/libpakfire/mount.c +++ b/src/libpakfire/mount.c @@ -506,7 +506,7 @@ int pakfire_bind(struct pakfire* pakfire, const char* src, const char* dst, int // as read-only and requires us to mount the source first, and then remount it // again using MS_RDONLY. if (flags & MS_RDONLY) { - r = pakfire_mount(pakfire, src, mountpoint, NULL, MS_BIND|MS_REC, NULL); + r = pakfire_mount(pakfire, src, mountpoint, "bind", MS_BIND|MS_REC, NULL); if (r) return r; @@ -515,5 +515,5 @@ int pakfire_bind(struct pakfire* pakfire, const char* src, const char* dst, int } // Perform mount - return pakfire_mount(pakfire, src, mountpoint, NULL, flags|MS_BIND|MS_REC, NULL); + return pakfire_mount(pakfire, src, mountpoint, "bind", flags|MS_BIND|MS_REC, NULL); } -- 2.47.3