* edit.c (edit_load_file): Use vfs_file_is_local(), not
vfs_current_is_local(). * editlock.c (edit_lock_file): Disable locking on VFS.
Этот коммит содержится в:
родитель
8088d4a2cc
Коммит
ebf1bcfa33
@ -1,3 +1,9 @@
|
||||
2003-04-02 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* edit.c (edit_load_file): Use vfs_file_is_local(), not
|
||||
vfs_current_is_local().
|
||||
* editlock.c (edit_lock_file): Disable locking on VFS.
|
||||
|
||||
2003-04-01 Adam Byrtek <alpha@debian.org>
|
||||
|
||||
* editlock.c, editlock.h: New files. Implement file locking in
|
||||
|
@ -409,9 +409,8 @@ edit_load_file (WEdit *edit)
|
||||
* VFS may report file size incorrectly, and slow load is not a big
|
||||
* deal considering overhead in VFS.
|
||||
*/
|
||||
if (!vfs_current_is_local ()) {
|
||||
if (!vfs_file_is_local (edit->filename))
|
||||
fast_load = 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* FIXME: line end translation should disable fast loading as well
|
||||
|
@ -109,6 +109,10 @@ edit_lock_file (char *fname)
|
||||
if (!fname || !*fname)
|
||||
return 0;
|
||||
|
||||
/* Locking on VFS is not supported */
|
||||
if (!vfs_file_is_local (fname))
|
||||
return 0;
|
||||
|
||||
/* Check if already locked */
|
||||
lockfname = g_strconcat (".#", fname, NULL);
|
||||
if (lstat (lockfname, &statbuf) == 0) {
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user