Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 58976 Details for
Bug 92740
Proposed patch to fix Gnome bug #303470
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
fixes bug #303470
gnome-vfs-2.10.1.date-time-stamp-fix.patch (text/plain), 2.24 KB, created by
Max Powers
on 2005-05-15 16:28:57 UTC
(
hide
)
Description:
fixes bug #303470
Filename:
MIME Type:
Creator:
Max Powers
Created:
2005-05-15 16:28:57 UTC
Size:
2.24 KB
patch
obsolete
>? .303470.patch.swp >? compile >? gnome-vfs-zip >? imported/fnmatch/Makefile >? imported/fnmatch/Makefile.in >? libgnomevfs/.gnome-vfs-xfer.c.swp >? libgnomevfs/171495.patch >Index: libgnomevfs/gnome-vfs-xfer.c >=================================================================== >RCS file: /cvs/gnome/gnome-vfs/libgnomevfs/gnome-vfs-xfer.c,v >retrieving revision 1.123 >diff -u -p -r1.123 gnome-vfs-xfer.c >--- libgnomevfs/gnome-vfs-xfer.c 6 May 2005 12:19:40 -0000 1.123 >+++ libgnomevfs/gnome-vfs-xfer.c 9 May 2005 11:29:32 -0000 >@@ -1682,28 +1682,36 @@ copy_directory (GnomeVFSFileInfo *source > gnome_vfs_directory_close (dest_directory_handle); > gnome_vfs_directory_close (source_directory_handle); > >- if (result == GNOME_VFS_OK) { >+ if (result == GNOME_VFS_OK) { > GnomeVFSFileInfo *info; >- info = gnome_vfs_file_info_new (); >+ >+ if (target_dir_info && GNOME_VFS_FILE_INFO_SGID (target_dir_info)) { >+ info = gnome_vfs_file_info_dup (source_file_info); >+ info->gid = target_dir_info->gid; >+ } else { >+ /* No need to dup the file info in this case */ >+ gnome_vfs_file_info_ref (source_file_info); >+ info = source_file_info; >+ } >+ > /* FIXME the modules should ignore setting of permissions if > * "valid_fields & GNOME_VFS_FILE_INFO_FIELDS_PERMISSIONS" is clear > * for now, make sure permissions aren't set to 000 > */ >- gnome_vfs_file_info_copy (source_file_info, info); >- if (target_dir_info && GNOME_VFS_FILE_INFO_SGID(target_dir_info)) { >- info->gid = target_dir_info->gid; >- } >- if ((source_file_info->valid_fields & GNOME_VFS_FILE_INFO_FIELDS_PERMISSIONS) != 0) { >+ if ((info->valid_fields & GNOME_VFS_FILE_INFO_FIELDS_PERMISSIONS) != 0) { >+ > /* Call this separately from the time one, since one of them may fail, > making the other not run. */ > gnome_vfs_set_file_info_uri (target_dir_uri, info, >- GNOME_VFS_SET_FILE_INFO_OWNER | GNOME_VFS_SET_FILE_INFO_PERMISSIONS); >+ GNOME_VFS_SET_FILE_INFO_OWNER | >+ GNOME_VFS_SET_FILE_INFO_PERMISSIONS); > } > > /* Call this last so nothing else changes the times */ > gnome_vfs_set_file_info_uri (target_dir_uri, info, GNOME_VFS_SET_FILE_INFO_TIME); > gnome_vfs_file_info_unref (info); > } >+ > if (target_dir_info) { > gnome_vfs_file_info_unref (target_dir_info); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 92740
: 58976