diff options
| author | Nikola Pajkovsky <npajkovs@redhat.com> | 2010-05-26 17:28:31 +0200 |
|---|---|---|
| committer | Nikola Pajkovsky <npajkovs@redhat.com> | 2010-05-26 17:28:31 +0200 |
| commit | bcebad426c2b178b2d46c786343c55d3d14abf73 (patch) | |
| tree | 2752037d7f8811647bf93f6c2e3bfb9643835b76 /src/Hooks/abrt-hook-python.cpp | |
| parent | 9aa25a391810f151e65cbaf05ea8d111b864d4a7 (diff) | |
| parent | b59c6438a772e3c3aba2f455fa5482add6c9d886 (diff) | |
| download | abrt-bcebad426c2b178b2d46c786343c55d3d14abf73.tar.gz abrt-bcebad426c2b178b2d46c786343c55d3d14abf73.tar.xz abrt-bcebad426c2b178b2d46c786343c55d3d14abf73.zip | |
Merge branch 'master' of ssh://git.fedorahosted.org/git/abrt
Diffstat (limited to 'src/Hooks/abrt-hook-python.cpp')
| -rw-r--r-- | src/Hooks/abrt-hook-python.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Hooks/abrt-hook-python.cpp b/src/Hooks/abrt-hook-python.cpp index 27a02134..cbe1418e 100644 --- a/src/Hooks/abrt-hook-python.cpp +++ b/src/Hooks/abrt-hook-python.cpp @@ -145,7 +145,7 @@ int main(int argc, char** argv) dd.Close(); char *newpath = xstrndup(path, path_len - (sizeof(".new")-1)); - if (rename(path, newpath) != 0) + if (rename(path, newpath) == 0) strcpy(path, newpath); free(newpath); |
