File Bug1208375.patch of Package nautilus-share

diff --git a/src/shares.c b/src/shares.c
index f65f78d..4d6efcd 100644
--- a/src/shares.c
+++ b/src/shares.c
@@ -358,9 +358,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 (strstr (acl, "Everyone:R"))
+		if (strstr (acl, "S-1-1-0:R"))
 			is_writable = FALSE;
-		else if (strstr (acl, "Everyone:F"))
+		else if (strstr (acl, "S-1-1-0:F"))
 			is_writable = TRUE;
 		else {
 			g_message ("unknown format for key '%s/%s' as it contains '%s'.  Assuming that the share is read-only",
@@ -622,11 +622,11 @@ add_share (ShareInfo *info, GError **error)
 		return FALSE;
 
 	argv[0] = "add";
-	argv[1] = "-l";
+	argv[1] = "--long";
 	argv[2] = info->share_name;
 	argv[3] = info->path;
 	argv[4] = info->comment;
-	argv[5] = info->is_writable ? "Everyone:F" : "Everyone:R";
+	argv[5] = info->is_writable ? "S-1-1-0:F" : "S-1-1-0:R";
 
 	if (supports_guest_ok) {
 		argv[6] = info->guest_ok ? "guest_ok=y" : "guest_ok=n";
openSUSE Build Service is sponsored by