logo

oasis

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

0005-Restore-uid-and-gid-information-when-requested.patch (1494B)


  1. From 8e82b2116b190c9dd4ef2b56e1282ca2c6e30b62 Mon Sep 17 00:00:00 2001
  2. From: "Steven M. Schweda" <sms@antinode.info>
  3. Date: Sat, 15 Jun 2019 18:13:11 -0700
  4. Subject: [PATCH] Restore uid and gid information when requested
  5. ---
  6. process.c | 6 +++---
  7. 1 file changed, 3 insertions(+), 3 deletions(-)
  8. diff --git a/process.c b/process.c
  9. index ed314e1..df58d28 100644
  10. --- a/process.c
  11. +++ b/process.c
  12. @@ -2904,7 +2904,7 @@ unsigned ef_scan_for_izux(ef_buf, ef_len, ef_is_c, dos_mdatetime,
  13. #ifdef IZ_HAVE_UXUIDGID
  14. if (eb_len >= EB_UX3_MINLEN
  15. && z_uidgid != NULL
  16. - && (*((EB_HEADSIZE + 0) + ef_buf) == 1)
  17. + && (*((EB_HEADSIZE + 0) + ef_buf) == 1))
  18. /* only know about version 1 */
  19. {
  20. uch uid_size;
  21. @@ -2916,10 +2916,10 @@ unsigned ef_scan_for_izux(ef_buf, ef_len, ef_is_c, dos_mdatetime,
  22. flags &= ~0x0ff; /* ignore any previous UNIX field */
  23. if ( read_ux3_value((EB_HEADSIZE + 2) + ef_buf,
  24. - uid_size, z_uidgid[0])
  25. + uid_size, &z_uidgid[0])
  26. &&
  27. read_ux3_value((EB_HEADSIZE + uid_size + 3) + ef_buf,
  28. - gid_size, z_uidgid[1]) )
  29. + gid_size, &z_uidgid[1]) )
  30. {
  31. flags |= EB_UX2_VALID; /* signal success */
  32. }
  33. --
  34. 2.20.1