aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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}"