[PATCH] hotlist.c - fix coredump (trivial)

Pavel Roskin proski at gnu.org
Tue May 7 05:42:34 UTC 2002


Hello!

> This will prevent MC from dumping core if user pressed Del in Active VFS 
> dialog. (Ctrl-X a)

Thanks!  Applied.

> Is there a way to delete selected active vfs? I've read the sources, but 
> didn't find an easy way to implement this.

You can delete all VFS by calling vfs_expire(1)

It works on timestamps.  But "struct vfs_stamping" has a reference to the
VFS (see vfs.h).  You can rewrite vfs_expire() to take VFS id as an
argument and expire only VFS with that id.

-- 
Regards,
Pavel Roskin




More information about the mc-devel mailing list