mirror of
https://github.com/oasislinux/oasis.git
synced 2026-09-30 10:25:20 +02:00
39 lines
1.5 KiB
Diff
39 lines
1.5 KiB
Diff
From 8e82b2116b190c9dd4ef2b56e1282ca2c6e30b62 Mon Sep 17 00:00:00 2001
|
|
From: "Steven M. Schweda" <sms@antinode.info>
|
|
Date: Sat, 15 Jun 2019 18:13:11 -0700
|
|
Subject: [PATCH] Restore uid and gid information when requested
|
|
|
|
---
|
|
process.c | 6 +++---
|
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/process.c b/process.c
|
|
index ed314e1..df58d28 100644
|
|
--- a/process.c
|
|
+++ b/process.c
|
|
@@ -2904,7 +2904,7 @@ unsigned ef_scan_for_izux(ef_buf, ef_len, ef_is_c, dos_mdatetime,
|
|
#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 @@ unsigned ef_scan_for_izux(ef_buf, ef_len, ef_is_c, dos_mdatetime,
|
|
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 */
|
|
}
|
|
--
|
|
2.20.1
|
|
|