logo

oasis

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

0005-Fix-sscanf-format-specifier.patch (687B)


  1. From b556d59ad2ffa73e4baa4c8345210c70a255296a Mon Sep 17 00:00:00 2001
  2. From: Michael Forney <mforney@mforney.org>
  3. Date: Mon, 6 Sep 2021 23:26:54 -0700
  4. Subject: [PATCH] Fix sscanf format specifier
  5. ---
  6. lib/mount_util.c | 2 +-
  7. 1 file changed, 1 insertion(+), 1 deletion(-)
  8. diff --git a/lib/mount_util.c b/lib/mount_util.c
  9. index 35e9948..85ab119 100644
  10. --- a/lib/mount_util.c
  11. +++ b/lib/mount_util.c
  12. @@ -360,7 +360,7 @@ int fuse_mnt_parse_fuse_fd(const char *mountpoint)
  13. int fd = -1;
  14. int len = 0;
  15. - if (sscanf(mountpoint, "/dev/fd/%u%n", &fd, &len) == 1 &&
  16. + if (sscanf(mountpoint, "/dev/fd/%d%n", &fd, &len) == 1 &&
  17. len == strlen(mountpoint)) {
  18. return fd;
  19. }
  20. --
  21. 2.32.0