mc/02_ignore_ftp_chmod_error.patch
Philipp Thomas 6a9c96f937 - Fix wrapper script for sh, change Makefile to substitute
datadir (bnc#639044).
- Update to 4.7.0.9. Changes since 4.7.0.7:
  * Translation updates.
  * Added Galician translation.
  * Fix potential division by zero in Info panel.
  * Regexp replace only transforms the first occurence correctly.
  * Fix remaining plain int types in VFS.
  * Add "Toggle syntax highlighting" menu item.
  * Fix restoring of signals even if fork() fails.
  * Fix Segfault in replacement confirmation in editor.

OBS-URL: https://build.opensuse.org/package/show/Base:System/mc?expand=0&rev=19
2010-09-14 14:24:26 +00:00

14 lines
621 B
Diff

Index: lib/vfs/mc-vfs/ftpfs.c
===================================================================
--- lib/vfs/mc-vfs/ftpfs.c.orig 2010-09-07 08:53:07.000000000 +0200
+++ lib/vfs/mc-vfs/ftpfs.c 2010-09-14 15:58:24.445150391 +0200
@@ -1670,7 +1670,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)) {