Initial Commit
- initial default booting image
This commit is contained in:
31
package/unzip/0005-fix-uid-gid-handling.patch
Normal file
31
package/unzip/0005-fix-uid-gid-handling.patch
Normal file
@@ -0,0 +1,31 @@
|
||||
From: "Steven M. Schweda" <sms@antinode.info>
|
||||
Subject: Restore uid and gid information when requested
|
||||
Bug-Debian: https://bugs.debian.org/689212
|
||||
X-Debian-version: 6.0-8
|
||||
Upstream: https://sources.debian.org/src/unzip/6.0-29/debian/patches/05-fix-uid-gid-handling.patch
|
||||
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
|
||||
|
||||
--- a/process.c
|
||||
+++ b/process.c
|
||||
@@ -2904,7 +2904,7 @@
|
||||
#ifdef IZ_HAVE_UXUIDGID
|
||||
if (eb_len >= EB_UX3_MINLEN
|
||||
&& z_uidgid != NULL
|
||||
- && (*((EB_HEADSIZE + 0) + ef_buf) == 1)
|
||||
+ && (*((EB_HEADSIZE + 0) + ef_buf) == 1))
|
||||
/* only know about version 1 */
|
||||
{
|
||||
uch uid_size;
|
||||
@@ -2916,10 +2916,10 @@
|
||||
flags &= ~0x0ff; /* ignore any previous UNIX field */
|
||||
|
||||
if ( read_ux3_value((EB_HEADSIZE + 2) + ef_buf,
|
||||
- uid_size, z_uidgid[0])
|
||||
+ uid_size, &z_uidgid[0])
|
||||
&&
|
||||
read_ux3_value((EB_HEADSIZE + uid_size + 3) + ef_buf,
|
||||
- gid_size, z_uidgid[1]) )
|
||||
+ gid_size, &z_uidgid[1]) )
|
||||
{
|
||||
flags |= EB_UX2_VALID; /* signal success */
|
||||
}
|
||||
Reference in New Issue
Block a user