From 1771f7ae7951384f1c270fde2dfbc62304a819de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Mon, 18 Jul 2005 07:08:17 +0000 Subject: [PATCH] Signatures are case insensitive - I hope I fixed all occurences now... (but probably not) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13731 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/app/Messenger.cpp | 4 ++-- src/kits/app/Roster.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/kits/app/Messenger.cpp b/src/kits/app/Messenger.cpp index de4660f3da..2294ee34d0 100644 --- a/src/kits/app/Messenger.cpp +++ b/src/kits/app/Messenger.cpp @@ -1,5 +1,5 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2001-2002, OpenBeOS +// Copyright (c) 2001-2005, Haiku // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software"), @@ -546,7 +546,7 @@ BMessenger::InitData(const char *signature, team_id team, status_t *result) // a team ID is given error = be_roster->GetRunningAppInfo(team, &info); // Compare the returned signature with the supplied one. - if (error == B_OK && signature && strcmp(signature, info.signature)) + if (error == B_OK && signature && strcasecmp(signature, info.signature)) error = B_MISMATCHED_VALUES; } // check whether the app flags say B_ARGV_ONLY diff --git a/src/kits/app/Roster.cpp b/src/kits/app/Roster.cpp index 864d415055..ec5145caf9 100644 --- a/src/kits/app/Roster.cpp +++ b/src/kits/app/Roster.cpp @@ -1,5 +1,5 @@ //------------------------------------------------------------------------------ -// Copyright (c) 2001-2002, OpenBeOS +// Copyright (c) 2001-2005, Haiku // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software"), @@ -1903,7 +1903,7 @@ BRoster::resolve_app(const char *inType, entry_ref *ref, char signature[B_MIME_TYPE_LENGTH]; if (appFileInfo.SetTo(&appFile) == B_OK && appFileInfo.GetSignature(signature) == B_OK) { - if (!strcmp(appMeta.Type(), signature)) + if (!strcasecmp(appMeta.Type(), signature)) appMeta.SetAppHint(&_appRef); else { appMeta.SetAppHint(NULL);