[nautilus] nautilus_file_get_owner_name: Don't ever return "me"



commit bfa2d63249a1f5de986f7f1ad21d79920fa4947f
Author: Alexander Larsson <alexl redhat com>
Date:   Thu Aug 21 12:31:12 2014 +0200

    nautilus_file_get_owner_name: Don't ever return "me"
    
    This function is used by the property window code to compare the actual
    username to one from a function, so don't use "me" unless we're purely
    for display purposes.

 libnautilus-private/nautilus-file.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libnautilus-private/nautilus-file.c b/libnautilus-private/nautilus-file.c
index 6a8de7e..6c94987 100644
--- a/libnautilus-private/nautilus-file.c
+++ b/libnautilus-private/nautilus-file.c
@@ -5692,7 +5692,8 @@ nautilus_file_get_owner_as_string (NautilusFile *file, gboolean include_real_nam
                return NULL;
        }
 
-       if (file->details->uid == getuid ()) {
+       if (include_real_name &&
+           file->details->uid == getuid ()) {
                /* Translators: "Me" is used to indicate the file is owned by me (the current user) */
                user_name = g_strdup (_("Me"));
        } else if (file->details->owner_real == NULL) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]