From: Michael Tremer Date: Mon, 2 Oct 2023 15:09:52 +0000 (+0000) Subject: mount: Do not call mount with an empty filesystem type X-Git-Tag: 0.9.30~1569 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b16b8753a1f1e069c9201818ef2fbad8a76bd2fd;p=pakfire.git mount: Do not call mount with an empty filesystem type Signed-off-by: Michael Tremer --- 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); }