summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-06-22 18:29:34 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2010-06-22 18:29:34 +0200
commitaa501f2e44a7a08634609c4db4e635c4d1937df0 (patch)
treea2aff13dd4012e07bb45a28149d19d23bfb0a6fd /src
parenteb711bccbd0b436269157858b62e1fbe7edab651 (diff)
downloadabrt-aa501f2e44a7a08634609c4db4e635c4d1937df0.tar.gz
abrt-aa501f2e44a7a08634609c4db4e635c4d1937df0.tar.xz
abrt-aa501f2e44a7a08634609c4db4e635c4d1937df0.zip
small fixes to WatchCrashdumpArchiveDir code
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'src')
-rw-r--r--src/Daemon/Daemon.cpp2
-rw-r--r--src/Daemon/abrt-handle-upload16
2 files changed, 9 insertions, 9 deletions
diff --git a/src/Daemon/Daemon.cpp b/src/Daemon/Daemon.cpp
index 2b56522b..e9db034d 100644
--- a/src/Daemon/Daemon.cpp
+++ b/src/Daemon/Daemon.cpp
@@ -434,7 +434,7 @@ static gboolean handle_inotify_cb(GIOChannel *gio, GIOCondition condition, gpoin
{
/* Default size: 128 simultaneous actions (about 1/2 meg) */
#define INOTIFY_BUF_SIZE ((sizeof(struct inotify_event) + FILENAME_MAX)*128)
- /* Determine how much to read (it usualiiy is much smaller) */
+ /* Determine how much to read (it usually is much smaller) */
/* NB: this variable _must_ be int-sized, ioctl expects that! */
int inotify_bytes = INOTIFY_BUF_SIZE;
if (ioctl(g_io_channel_unix_get_fd(gio), FIONREAD, &inotify_bytes) != 0
diff --git a/src/Daemon/abrt-handle-upload b/src/Daemon/abrt-handle-upload
index 3c02f257..82f52692 100644
--- a/src/Daemon/abrt-handle-upload
+++ b/src/Daemon/abrt-handle-upload
@@ -9,10 +9,10 @@
print_clean_and_die()
{
- printf "%s\n" "$*"
- #echo delete_on_exit="$delete_on_exit"
- test "$delete_on_exit" && rm -rf -- $delete_on_exit
- exit $die_exitcode
+ printf "%s\n" "$*"
+ #echo delete_on_exit="$delete_on_exit"
+ test "$delete_on_exit" && rm -rf -- $delete_on_exit
+ exit $die_exitcode
}
die_exitcode=1
@@ -57,13 +57,13 @@ $unpacker <"$archive.working" | tar xf - -C "$tempdir" || print_clean_and_die "C
# or one or more complete crashdump directories.
# Checking second possibility first.
if test -f "$tempdir/analyzer" && test -f "$tempdir/time" && test -f "$tempdir/uid"; then
- echo 1 >"$tempdir/remote"
+ printf "1" >"$tempdir/remote"
mv -- "$tempdir" "$abrt_dir"
else
for d in "$tempdir"/*; do
- test -d "$d" || continue
- echo 1 >"$tempdir/$d/remote"
- mv -- "$d" "$abrt_dir"
+ test -d "$d" || continue
+ printf "1" >"$tempdir/$d/remote"
+ mv -- "$d" "$abrt_dir"
done
fi