mc/02_ignore_ftp_chmod_error.patch

14 lines
621 B
Diff
Raw Normal View History

Index: lib/vfs/mc-vfs/ftpfs.c
===================================================================
--- lib/vfs/mc-vfs/ftpfs.c.orig 2010-07-05 21:12:51.000000000 +0200
+++ lib/vfs/mc-vfs/ftpfs.c 2010-07-07 11:52:54.995011197 +0200
@@ -1669,7 +1669,7 @@ static int ftpfs_chmod (struct vfs_class
g_snprintf(buf, sizeof(buf), "SITE CHMOD %4.4o /%%s", mode & 07777);
- ret = ftpfs_send_command(me, path, buf, OPT_FLUSH);
+ ret = ftpfs_send_command(me, path, buf, OPT_FLUSH | OPT_IGNORE_ERROR);
if ( mc_config_get_bool (mc_main_config, CONFIG_APP_SECTION,
"ignore_ftp_chattr_errors", TRUE)) {