(ftpfs_chmod): Don't ignore errors.

This commit is contained in:
Andrew V. Samoilov 2002-02-06 12:32:52 +00:00
parent e32151bb9e
commit 0314076889
2 changed files with 4 additions and 2 deletions

View File

@ -4,6 +4,8 @@
to eliminate problem with wu-ftpd.
Close sock on error. Eliminate goto.
(ftpfs_chmod): Don't ignore errors.
(reconnect): Restore cwdir if login_server fails.
2002-02-01 Andrew V. Samoilov <kai@cmail.ru>

View File

@ -1549,9 +1549,9 @@ ftpfs_init_passwd(void)
static int ftpfs_chmod (vfs *me, char *path, int mode)
{
char buf[BUF_SMALL];
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)