Index: libnautilus-private/nautilus-file.c
===================================================================
RCS file: /cvs/gnome/nautilus/libnautilus-private/nautilus-file.c,v
retrieving revision 1.387
diff -u -p -r1.387 nautilus-file.c
--- libnautilus-private/nautilus-file.c	27 Apr 2006 14:00:58 -0000	1.387
+++ libnautilus-private/nautilus-file.c	17 May 2006 00:46:17 -0000
@@ -4157,7 +4157,13 @@ nautilus_file_get_octal_permissions_as_s
 		return NULL;
 	}
 
-	permissions = file->details->info->permissions;
+	permissions = file->details->info->permissions & 
+		 ( GNOME_VFS_PERM_USER_ALL
+		 | GNOME_VFS_PERM_GROUP_ALL
+		 | GNOME_VFS_PERM_OTHER_ALL
+		 | GNOME_VFS_PERM_SUID
+		 | GNOME_VFS_PERM_SGID
+		 | GNOME_VFS_PERM_STICKY);
 	return g_strdup_printf ("%03o", permissions);
 }
 
