diff options
author | Alexander Larsson <alexl@redhat.com> | 2014-08-21 12:31:12 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2014-08-21 12:45:14 +0200 |
commit | bfa2d63249a1f5de986f7f1ad21d79920fa4947f (patch) | |
tree | 352df10cbde4dd7fde865bb9ffca581ba6633ae3 | |
parent | ab6aa9aca1c25c34e3f1aece63efbe05a2984397 (diff) | |
download | nautilus-bfa2d63249a1f5de986f7f1ad21d79920fa4947f.tar.gz |
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.
-rw-r--r-- | 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 6a8de7ebb..6c94987d9 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) { |