[llvm-commits] CVS: llvm/lib/Bytecode/Archive/Archive.cpp
Reid Spencer
reid at x10sys.com
Thu Apr 21 10:50:08 PDT 2005
Changes in directory llvm/lib/Bytecode/Archive:
Archive.cpp updated: 1.6 -> 1.7
---
Log message:
Use the actual uid/gid for defaulting the fields in the archive.
---
Diffs of the changes: (+3 -2)
Archive.cpp | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
Index: llvm/lib/Bytecode/Archive/Archive.cpp
diff -u llvm/lib/Bytecode/Archive/Archive.cpp:1.6 llvm/lib/Bytecode/Archive/Archive.cpp:1.7
--- llvm/lib/Bytecode/Archive/Archive.cpp:1.6 Thu Jan 27 19:17:07 2005
+++ llvm/lib/Bytecode/Archive/Archive.cpp Thu Apr 21 12:49:57 2005
@@ -14,6 +14,7 @@
#include "ArchiveInternals.h"
#include "llvm/ModuleProvider.h"
+#include "llvm/System/Process.h"
using namespace llvm;
@@ -40,8 +41,8 @@
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();
More information about the llvm-commits
mailing list