mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-26 21:47:07 +00:00
Use the actual uid/gid for defaulting the fields in the archive.
llvm-svn: 21405
This commit is contained in:
parent
357bbf90af
commit
19f70e2fa2
@ -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