summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2023-05-29 16:17:10 -0400
committerAndrew Cady <d@jerkface.net>2023-05-29 16:17:10 -0400
commit3266426d9d12a171812951a7d37b6bd082c7b03f (patch)
tree925d0e5f94f04bfada48fbb756cac5060328f730
parent365da8aa87daf436ce27605886a7041040639b5b (diff)
fix regression causing homedir not to be searched
-rw-r--r--src/endofossil2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/endofossil b/src/endofossil
index 820e545..d69dc0c 100644
--- a/src/endofossil
+++ b/src/endofossil
@@ -2,7 +2,6 @@
2set -e -o pipefail 2set -e -o pipefail
3 3
4declare -a shared_paths 4declare -a shared_paths
5shared_paths=("$homedir"/./src /srv/./src /usr/./src /usr/local/./src)
6require_extension=.fossil 5require_extension=.fossil
7 6
8IFS=/ read n pid uid <<< "$1" 7IFS=/ read n pid uid <<< "$1"
@@ -11,6 +10,7 @@ IFS=/ read n pid uid <<< "$1"
11[ "$uid" -gt 0 ] 10[ "$uid" -gt 0 ]
12IFS=: read username realname uid_ gid gecos homedir shell < <(getent passwd "$uid") 11IFS=: read username realname uid_ gid gecos homedir shell < <(getent passwd "$uid")
13[ "$uid" = "$uid_" ] 12[ "$uid" = "$uid_" ]
13shared_paths=("$homedir"/./src /srv/./src /usr/./src /usr/local/./src)
14 14
15authtype= 15authtype=
16while read -d '' 16while read -d ''