Updating branch refs/heads/master
         to 60ce225154142c2fc0a62b11ee9f43a53c04dc88 (commit)
       from dc2287a830dc275c66f4eb190f6671630edbd382 (commit)

commit 60ce225154142c2fc0a62b11ee9f43a53c04dc88
Author: Daniel Morales <[email protected]>
Date:   Tue Jan 26 02:35:06 2010 -0200

    Changes arround writables shares, and user permissions when creating a new 
share

 libshares/shares.c |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/libshares/shares.c b/libshares/shares.c
index 6aa5bf1..f4b46a7 100644
--- a/libshares/shares.c
+++ b/libshares/shares.c
@@ -400,7 +400,7 @@ add_key_group_to_hashes (GKeyFile *key_file, const char 
*group)
        if (acl) {
                if (strstr (acl, "Everyone:R") == 0)
                        is_writable = FALSE;
-               else if (strstr (acl, "Everyone:R") == 0)
+               else if (strstr (acl, "Everyone:F") == 0)
                        is_writable = TRUE;
                else {
 #ifdef G_ENABLE_DEBUG
@@ -715,11 +715,10 @@ add_share (ShareInfo *info, GError **error)
        argv[2] = info->share_name;
        argv[3] = info->path;
        argv[4] = info->comment;
-       argv[5] = "Everyone:F";
 
-       if (info->is_writable)
-       {
-               /* Review: Maye set Everyone:R when is guest_ok (?) */
+       if (info->is_writable){
+               argv[5] = "Everyone:F";
+       } else {
                argv[5] = g_strdup_printf ("Everyone:R,%s:F", g_get_user_name 
());
        }
 
_______________________________________________
Xfce4-commits mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits

Reply via email to