mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-24 06:30:19 +00:00
Use the actual uid/gid for defaulting the fields in the archive.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21405 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cb2d1a2dc2
commit
8e827e8661
@ -14,6 +14,7 @@
|
||||
|
||||
#include "ArchiveInternals.h"
|
||||
#include "llvm/ModuleProvider.h"
|
||||
#include "llvm/System/Process.h"
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
@ -40,8 +41,8 @@ ArchiveMember::getMemberSize() const {
|
||||
ArchiveMember::ArchiveMember()
|
||||
: next(0), prev(0), parent(0), path("<invalid>"), flags(0), data(0)
|
||||
{
|
||||
info.user = 1000;
|
||||
info.group = 1000;
|
||||
info.user = sys::Process::GetCurrentUserId();
|
||||
info.group = sys::Process::GetCurrentGroupId();
|
||||
info.mode = 0777;
|
||||
info.fileSize = 0;
|
||||
info.modTime = sys::TimeValue::now();
|
||||
|
@ -14,6 +14,7 @@
|
||||
|
||||
#include "ArchiveInternals.h"
|
||||
#include "llvm/ModuleProvider.h"
|
||||
#include "llvm/System/Process.h"
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
@ -40,8 +41,8 @@ ArchiveMember::getMemberSize() const {
|
||||
ArchiveMember::ArchiveMember()
|
||||
: next(0), prev(0), parent(0), path("<invalid>"), flags(0), data(0)
|
||||
{
|
||||
info.user = 1000;
|
||||
info.group = 1000;
|
||||
info.user = sys::Process::GetCurrentUserId();
|
||||
info.group = sys::Process::GetCurrentGroupId();
|
||||
info.mode = 0777;
|
||||
info.fileSize = 0;
|
||||
info.modTime = sys::TimeValue::now();
|
||||
|
Loading…
Reference in New Issue
Block a user