summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/Daemon/abrt-handle-upload5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Daemon/abrt-handle-upload b/src/Daemon/abrt-handle-upload
index 71851535..55eeb7a6 100644
--- a/src/Daemon/abrt-handle-upload
+++ b/src/Daemon/abrt-handle-upload
@@ -63,7 +63,10 @@ else
for d in "$tempdir"/*; do
test -d "$d" || continue
printf "1" >"$d/remote"
- mv -- "$d" "$abrt_dir"
+ dst="$abrt_dir/$d"
+ test -e "$dst" && dst="$abrt_dir/$d.$$"
+ test -e "$dst" && continue
+ mv -- "$d" "$dst"
done
fi