[Xfce4-commits] <thunar-shares-plugin:master> Fix writable detection
Daniel Morales
noreply at xfce.org
Tue Jan 26 05:24:01 CET 2010
Updating branch refs/heads/master
to 0072bece9c60f444b8b861b56abc6b9bf67cb0ae (commit)
from 1c17aecadb16edadf0d7843ab116c055e207655b (commit)
commit 0072bece9c60f444b8b861b56abc6b9bf67cb0ae
Author: Daniel Morales <daniel at daniel.com.uy>
Date: Mon Jan 25 01:35:43 2010 -0200
Fix writable detection
libshares/shares.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libshares/shares.c b/libshares/shares.c
index 02bcbbb..b771e8f 100644
--- a/libshares/shares.c
+++ b/libshares/shares.c
@@ -398,9 +398,9 @@ add_key_group_to_hashes (GKeyFile *key_file, const char *group)
acl = get_string_from_key_file (key_file, group, KEY_ACL);
if (acl) {
- if (strncmp (acl, "Everyone:R", 10) == 0)
+ if (strstr (acl, "Everyone:R") == 0)
is_writable = FALSE;
- else if (strncmp (acl, "Everyone:F", 10) == 0)
+ else if (strstr (acl, "Everyone:R") == 0)
is_writable = TRUE;
else {
#ifdef G_ENABLE_DEBUG
More information about the Xfce4-commits
mailing list