parent
d8932b8645
commit
8ea6eb5f3d
@ -0,0 +1,37 @@
|
||||
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;
|
||||
}
|
Loading…
Reference in new issue