opkg

statically linked package installer
git clone anongit@rnpnr.xyz:opkg.git
Log | Files | Refs | Feed | Submodules | README | LICENSE

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 ---
      7  process.c | 6 +++---
      8  1 file changed, 3 insertions(+), 3 deletions(-)
      9 
     10 diff --git a/process.c b/process.c
     11 index ed314e1..df58d28 100644
     12 --- a/process.c
     13 +++ b/process.c
     14 @@ -2904,7 +2904,7 @@ unsigned ef_scan_for_izux(ef_buf, ef_len, ef_is_c, dos_mdatetime,
     15  #ifdef IZ_HAVE_UXUIDGID
     16              if (eb_len >= EB_UX3_MINLEN
     17                  && z_uidgid != NULL
     18 -                && (*((EB_HEADSIZE + 0) + ef_buf) == 1)
     19 +                && (*((EB_HEADSIZE + 0) + ef_buf) == 1))
     20                      /* only know about version 1 */
     21              {
     22                  uch uid_size;
     23 @@ -2916,10 +2916,10 @@ unsigned ef_scan_for_izux(ef_buf, ef_len, ef_is_c, dos_mdatetime,
     24                  flags &= ~0x0ff;      /* ignore any previous UNIX field */
     25  
     26                  if ( read_ux3_value((EB_HEADSIZE + 2) + ef_buf,
     27 -                                    uid_size, z_uidgid[0])
     28 +                                    uid_size, &z_uidgid[0])
     29                      &&
     30                       read_ux3_value((EB_HEADSIZE + uid_size + 3) + ef_buf,
     31 -                                    gid_size, z_uidgid[1]) )
     32 +                                    gid_size, &z_uidgid[1]) )
     33                  {
     34                      flags |= EB_UX2_VALID;   /* signal success */
     35                  }
     36 -- 
     37 2.20.1
     38