logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

0004-Prevent-unused-label-warning-with-IGNORE_MTAB.patch (615B)


  1. From 92210452ee8f336c6121ee2a4d6ffae8a085db15 Mon Sep 17 00:00:00 2001
  2. From: Michael Forney <mforney@mforney.org>
  3. Date: Mon, 6 Sep 2021 23:22:16 -0700
  4. Subject: [PATCH] Prevent unused-label warning with IGNORE_MTAB
  5. ---
  6. lib/mount.c | 2 ++
  7. 1 file changed, 2 insertions(+)
  8. diff --git a/lib/mount.c b/lib/mount.c
  9. index 979f8d9..a51731f 100644
  10. --- a/lib/mount.c
  11. +++ b/lib/mount.c
  12. @@ -500,8 +500,10 @@ static int fuse_mount_sys(const char *mnt, struct mount_opts *mo,
  13. return fd;
  14. +#ifndef IGNORE_MTAB
  15. out_umount:
  16. umount2(mnt, 2); /* lazy umount */
  17. +#endif
  18. out_close:
  19. free(type);
  20. free(source);
  21. --
  22. 2.32.0