You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gnome-vfs2/gnome-vfs-2.13.92-permisssi...

38 lines
1.6 KiB

Index: modules/file-method.c
===================================================================
RCS file: /cvs/gnome/gnome-vfs/modules/file-method.c,v
retrieving revision 1.154
retrieving revision 1.155
diff -u -p -r1.154 -r1.155
--- modules/file-method.c 27 Feb 2006 08:54:52 -0000 1.154
+++ modules/file-method.c 28 Feb 2006 10:08:18 -0000 1.155
@@ -729,7 +729,6 @@ get_access_info (GnomeVFSFileInfo *file_
* of the access calls
*/
#ifdef G_OS_WIN32
- file_info->permissions = 0;
if (g_access (full_name, R_OK) == 0) {
file_info->permissions |= GNOME_VFS_PERM_ACCESS_READABLE;
}
@@ -745,17 +744,16 @@ get_access_info (GnomeVFSFileInfo *file_
* calls needed
*/
if (g_access (full_name, R_OK|W_OK) == 0) {
- file_info->permissions = GNOME_VFS_PERM_ACCESS_READABLE | GNOME_VFS_PERM_ACCESS_WRITABLE;
+ file_info->permissions |= GNOME_VFS_PERM_ACCESS_READABLE | GNOME_VFS_PERM_ACCESS_WRITABLE;
if (g_access (full_name, X_OK) == 0) {
file_info->permissions |= GNOME_VFS_PERM_ACCESS_EXECUTABLE;
}
} else if (g_access (full_name, R_OK|X_OK) == 0) {
- file_info->permissions = GNOME_VFS_PERM_ACCESS_READABLE | GNOME_VFS_PERM_ACCESS_EXECUTABLE;
+ file_info->permissions |= GNOME_VFS_PERM_ACCESS_READABLE | GNOME_VFS_PERM_ACCESS_EXECUTABLE;
} else {
if (g_access (full_name, R_OK) == 0) {
- file_info->permissions = GNOME_VFS_PERM_ACCESS_READABLE;
+ file_info->permissions |= GNOME_VFS_PERM_ACCESS_READABLE;
} else {
- file_info->permissions = 0;
if (g_access (full_name, W_OK) == 0) {
file_info->permissions |= GNOME_VFS_PERM_ACCESS_WRITABLE;
}