mirror of
https://github.com/MidnightCommander/mc
synced 2025-03-31 04:02:57 +03:00
(ftpfs_chmod): Don't ignore errors.
This commit is contained in:
parent
e32151bb9e
commit
0314076889
@ -4,6 +4,8 @@
|
|||||||
to eliminate problem with wu-ftpd.
|
to eliminate problem with wu-ftpd.
|
||||||
Close sock on error. Eliminate goto.
|
Close sock on error. Eliminate goto.
|
||||||
|
|
||||||
|
(ftpfs_chmod): Don't ignore errors.
|
||||||
|
|
||||||
(reconnect): Restore cwdir if login_server fails.
|
(reconnect): Restore cwdir if login_server fails.
|
||||||
|
|
||||||
2002-02-01 Andrew V. Samoilov <kai@cmail.ru>
|
2002-02-01 Andrew V. Samoilov <kai@cmail.ru>
|
||||||
|
@ -1549,9 +1549,9 @@ ftpfs_init_passwd(void)
|
|||||||
static int ftpfs_chmod (vfs *me, char *path, int mode)
|
static int ftpfs_chmod (vfs *me, char *path, int mode)
|
||||||
{
|
{
|
||||||
char buf[BUF_SMALL];
|
char buf[BUF_SMALL];
|
||||||
|
|
||||||
g_snprintf(buf, sizeof(buf), "SITE CHMOD %4.4o /%%s", mode & 07777);
|
g_snprintf(buf, sizeof(buf), "SITE CHMOD %4.4o /%%s", mode & 07777);
|
||||||
return send_ftp_command(me, path, buf, OPT_IGNORE_ERROR | OPT_FLUSH);
|
return send_ftp_command(me, path, buf, OPT_FLUSH);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ftpfs_chown (vfs *me, char *path, int owner, int group)
|
static int ftpfs_chown (vfs *me, char *path, int owner, int group)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user