Package: mc
Version: 1:4.6.0-4.6.1-pre1-3
Severity: wishlist
Hi!
mc's ftpfs has problems with ftp servers without SITE CHMOD support. If the
ftp server returns an error message, mc opens a window containing this
message. This is very annoying when copying hundreds of files to an ftp
server. The attached patch fixes this behaviour by simply ignoring errors on
chmod. Please add this patch...
Regards,
Joerg
-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.10
Locale: LANG=de_DE, [EMAIL PROTECTED] (charmap=ISO-8859-15)
Versions of packages mc depends on:
ii e2fslibs 1.36rc2-1 ext2 filesystem libraries
ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an
ii libcomerr2 1.36rc2-1 common error description library
ii libglib2.0-0 2.6.1-2 The GLib library of C routines
ii libgpmg1 1.19.6-19 General Purpose Mouse - shared lib
-- no debconf information
diff -dur mc-4.6.0-4.6.1-pre1/vfs/ftpfs.c mc-4.6.0-4.6.1-pre1-patched/vfs/ftpfs.c
--- mc-4.6.0-4.6.1-pre1/vfs/ftpfs.c 2003-11-26 22:10:44.000000000 +0100
+++ mc-4.6.0-4.6.1-pre1-patched/vfs/ftpfs.c 2005-01-16 22:43:33.000000000 +0100
@@ -1489,7 +1489,7 @@
char buf[BUF_SMALL];
g_snprintf(buf, sizeof(buf), "SITE CHMOD %4.4o /%%s", mode & 07777);
- return ftpfs_send_command(me, path, buf, OPT_FLUSH);
+ return ftpfs_send_command(me, path, buf, OPT_FLUSH | OPT_IGNORE_ERROR);
}
static int ftpfs_chown (struct vfs_class *me, char *path, int owner, int group)