opkg

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

0006-Initialize-the-symlink-flag.patch (765B)


      1 From d160eb934654c2a52ef7f8273a7f651fd6178b7d Mon Sep 17 00:00:00 2001
      2 From: Andreas Schwab <schwab@linux-m68k.org>
      3 Date: Sat, 15 Jun 2019 18:13:11 -0700
      4 Subject: [PATCH] Initialize the symlink flag
      5 
      6 ---
      7  process.c | 6 ++++++
      8  1 file changed, 6 insertions(+)
      9 
     10 diff --git a/process.c b/process.c
     11 index df58d28..3228bde 100644
     12 --- a/process.c
     13 +++ b/process.c
     14 @@ -1758,6 +1758,12 @@ int process_cdir_file_hdr(__G)    /* return PK-type error code */
     15          = (G.crec.general_purpose_bit_flag & (1 << 11)) == (1 << 11);
     16  #endif
     17  
     18 +#ifdef SYMLINKS
     19 +    /* Initialize the symlink flag, may be set by the platform-specific
     20 +       mapattr function.  */
     21 +    G.pInfo->symlink = 0;
     22 +#endif
     23 +
     24      return PK_COOL;
     25  
     26  } /* end function process_cdir_file_hdr() */
     27 -- 
     28 2.20.1
     29