From 8aee1fd032bbfcee3ef0618f683723d119850da0 Mon Sep 17 00:00:00 2001 From: Mohammad Akhlaghi Date: Tue, 22 Jan 2019 03:56:44 +0000 Subject: Using fork of metastore to work when getpwuid isn't usable After testing the built of Metastore on a server, I noticed that because its `/etc/passwd' doesn't have the list of users, the `getpwuid' call within metastore failed and wouldn't let it finish. So I looked into the code and was able to implement a solution to this problem by adding two options to it for default values for the user and group. Also, file attributes are not necessary in our (current) use case of metastore and caused crashes on our server, so they are also disabled. --- reproduce/src/bash/git-post-checkout | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'reproduce/src/bash/git-post-checkout') diff --git a/reproduce/src/bash/git-post-checkout b/reproduce/src/bash/git-post-checkout index 4ec2fa6..4c69b2d 100644 --- a/reproduce/src/bash/git-post-checkout +++ b/reproduce/src/bash/git-post-checkout @@ -25,6 +25,6 @@ if [ ! -e "$MSFILE" ]; then fi exit_on_fail \ - @BINDIR@/metastore -a -m -e -E -q -f "$MSFILE" + @BINDIR@/metastore -a -m -e -E -q -O @USER@ -G @GROUP@ -f "$MSFILE" exit 0 -- cgit v1.2.1