1
1

Fixed error where relative paths were errorneously used.

Этот коммит содержится в:
Pavel Machek 2000-02-03 21:59:04 +00:00
родитель 1469e74810
Коммит d332550407
2 изменённых файлов: 9 добавлений и 5 удалений

Просмотреть файл

@ -1,3 +1,7 @@
2000-02-04 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
* ftpfs.c (ftpfs_unlink, *): prepend / so that it actually works
2000-02-03 Andrew V. Samoilov <sav@bcs.zp.ua>
* xdirentry.h: added prototype for vfs_s_retrieve_file

Просмотреть файл

@ -1497,7 +1497,7 @@ static int ftpfs_chown (vfs *me, char *path, int owner, int group)
static int ftpfs_unlink (vfs *me, char *path)
{
return send_ftp_command(me, path, "DELE %s", OPT_FLUSH);
return send_ftp_command(me, path, "DELE /%s", OPT_FLUSH);
}
/* Return true if path is the same directoy as the one we are on now */
@ -1537,18 +1537,18 @@ ftpfs_chdir_internal (vfs *me, vfs_s_super *super, char *remote_path)
static int ftpfs_rename (vfs *me, char *path1, char *path2)
{
send_ftp_command(me, path1, "RNFR %s", OPT_FLUSH);
return send_ftp_command(me, path2, "RNTO %s", OPT_FLUSH);
send_ftp_command(me, path1, "RNFR /%s", OPT_FLUSH);
return send_ftp_command(me, path2, "RNTO /%s", OPT_FLUSH);
}
static int ftpfs_mkdir (vfs *me, char *path, mode_t mode)
{
return send_ftp_command(me, path, "MKD %s", OPT_FLUSH);
return send_ftp_command(me, path, "MKD /%s", OPT_FLUSH);
}
static int ftpfs_rmdir (vfs *me, char *path)
{
return send_ftp_command(me, path, "RMD %s", OPT_FLUSH);
return send_ftp_command(me, path, "RMD /%s", OPT_FLUSH);
}
void ftpfs_set_debug (const char *file)