aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Thomas <malinka@entropy-development.com>2016-07-03 15:26:06 -0400
committerKylie McClain <somasis@exherbo.org>2016-07-03 15:26:06 -0400
commit11dc13204b894ddd0db7c8fbd9ebc96697510890 (patch)
treef9f659824b778c0e9e7769a7bca204bda035aa43
parent68f0f3cbb77f31f7936acfa238be318817df87ed (diff)
downloadbeginning-scripts-11dc13204b894ddd0db7c8fbd9ebc96697510890.tar.gz
beginning-scripts-11dc13204b894ddd0db7c8fbd9ebc96697510890.tar.xz
beginning-scripts-11dc13204b894ddd0db7c8fbd9ebc96697510890.zip
fix typo in xdg-runtime-dirs causing uid == gid (#1)
-rw-r--r--xdg-runtime-dirs2
1 files changed, 1 insertions, 1 deletions
diff --git a/xdg-runtime-dirs b/xdg-runtime-dirs
index bc04d17..71ed281 100644
--- a/xdg-runtime-dirs
+++ b/xdg-runtime-dirs
@@ -9,7 +9,7 @@ xdg-runtime-dirs_start() {
for u in $(cut -f1,3-4 -d ':' "@@sysconfdir@@"/passwd);do
user=${u%%:*}
gid=${u##*:}
- uid=${u%**}; uid=${uid##*:}
+ uid=${u%:*}; uid=${uid##*:}
status CUSTOM "xdg-runtime-dirs: ${user}"
if [[ ! -d "@@runstatedir@@"/user/"${uid}" ]];then
mkdir "@@runstatedir@@"/user/"${uid}"