Re: [PATCH] Don't set r/o permissions when copying from r/o locations



On Thu, 2006-03-09 at 22:39 +0100, Christian Neumair wrote:
> The attached patch ensures that CDs are copied with r/w permissions by
> passing GNOME_VFS_XFER_TARGET_DEFAULT_PERMS to the Xfer operation if one
> of the source URIs is on a CD-ROM, or another read-only location. This
> has to wait until after the code freeze, and fixes bug 167102 [1].
> 
> [1] http://bugzilla.gnome.org/show_bug.cgi?id=167102#

Take a look at gnome_vfs_volume_monitor_get_volume_for_path(). It'll
help your patch a lot.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
                   alexl redhat com    alla lysator liu se 
He's a superhumanly strong sweet-toothed gentleman spy with a winning smile 
and a way with the ladies. She's a cynical cigar-chomping archaeologist who 
can talk to animals. They fight crime! 




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]