bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

sharutils: misleading message from uudecode


From: Santiago Vila
Subject: sharutils: misleading message from uudecode
Date: Sun, 12 Mar 2006 23:45:09 +0100 (CET)

Hello.

This bug is very old (see http://bugs.debian.org/68928 for details),
but it's still present in sharutils 4.6.1.

Summary: If "foo.uu" is an uuencoded file and "bar" is a directory,

uudecode foo.uu -o bar

gives the following message:

uudecode: bar: foo.uu: Is a directory

which is misleading, as it seems to say that foo.uu is a directory.

This would be the patch for sharutils-4.6.1:

diff -ru sharutils-4.6.1/src/uudecode.c NEW/src/uudecode.c
--- sharutils-4.6.1/src/uudecode.c      2005-11-15 18:03:29.000000000 +0100
+++ NEW/src/uudecode.c  2006-03-12 23:10:20.749667000 +0100
@@ -386,7 +386,7 @@
 #endif
          ))
     {
-      error (0, errno, "%s: %s", outname, inname);
+      error (0, errno, "%s", outname);
       return 1;
     }
 

If the patch is wrong for whatever reason (for example, if it should
not be applied because the output needs to comply with some POSIX standard),
please let me know.

Thanks.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]