]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
Use past tense in error message in io_unlink().
authorLasse Collin <lasse.collin@tukaani.org>
Tue, 26 Jan 2010 20:53:37 +0000 (22:53 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Tue, 26 Jan 2010 20:53:37 +0000 (22:53 +0200)
Added a note to translators too.

Thanks to Robert Readman.

THANKS
src/xz/file_io.c

diff --git a/THANKS b/THANKS
index 0d8f7bd94afc96da792407a691293c0889e65fa9..239daf47ed567638e21623e773a8995440c1da34 100644 (file)
--- a/THANKS
+++ b/THANKS
@@ -34,6 +34,7 @@ has been important. :-) In alphabetical order:
   - Igor Pavlov
   - Elbert Pol
   - Mikko Pouru
+  - Robert Readman
   - Bernhard Reutner-Fischer
   - Christian von Roques
   - Jukka Salmi
index a07501c13290ba3e9046e39b87f901a66b817040..4a960e83212d1f67cea1bc0c006c579ee5238d58 100644 (file)
@@ -112,8 +112,18 @@ io_unlink(const char *name, const struct stat *known_st)
                        || new_st.st_ino != known_st->st_ino
 #      endif
                        )
-               message_error(_("%s: File seems to be moved, not removing"),
-                               name);
+               // TRANSLATORS: When compression or decompression finishes,
+               // and xz is going to remove the source file, xz first checks
+               // if the source file still exists, and if it does, does its
+               // device and inode numbers match what xz saw when it opened
+               // the source file. If these checks fail, this message is
+               // shown, %s being the filename, and the file is not deleted.
+               // The check for device and inode numbers is there, because
+               // it is possible that the user has put a new file in place
+               // of the original file, and in that case it obviously
+               // shouldn't be removed.
+               message_error(_("%s: File seems to have been moved, "
+                               "not removing"), name);
        else
 #endif
                // There's a race condition between lstat() and unlink()