~ps-jenkins/unity-chromium-extension/trusty-proposed

« back to all changes in this revision

Viewing changes to chromium-patches/stable-28.0.1500.45/6-passwordless-install-support.patch

  • Committer: CI bot
  • Author(s): Justin McPherson
  • Date: 2014-02-17 23:43:23 UTC
  • mfrom: (239.2.1 remove-patches)
  • Revision ID: ps-jenkins@lists.canonical.com-20140217234323-4pw656wfrooeinde
Chromium patches are no longer maintained in this repo, remove them to avoid confusion. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Index: src/content/common/set_process_title_linux.cc
2
 
===================================================================
3
 
--- src/content/common/set_process_title_linux.cc       (revision 201630)
4
 
+++ src/content/common/set_process_title_linux.cc       (working copy)
5
 
@@ -44,6 +44,7 @@
6
 
 #include <stdio.h>
7
 
 #include <string.h>
8
 
 #include <unistd.h>
9
 
+#include <stddef.h>
10
 
 
11
 
 extern char** environ;
12
 
 
13
 
@@ -87,7 +88,11 @@
14
 
   // Put the title in argv[0]. We have to zero out the space first since the
15
 
   // kernel doesn't actually look for a null terminator unless we make the
16
 
   // argument list longer than it started.
17
 
-  avail_size = page_end - (uintptr_t) g_main_argv[0];
18
 
+  avail_size = 0;
19
 
+  for (i = 0; g_main_argv[i]; ++i) {
20
 
+    avail_size += strlen(g_main_argv[i]) + 1;
21
 
+  }
22
 
+
23
 
   memset(g_main_argv[0], 0, avail_size);
24
 
   va_start(ap, fmt);
25
 
   if (fmt[0] == '-') {
26
 
Index: src/content/common/set_process_title.cc
27
 
===================================================================
28
 
--- src/content/common/set_process_title.cc     (revision 201630)
29
 
+++ src/content/common/set_process_title.cc     (working copy)
30
 
@@ -65,6 +65,9 @@
31
 
     // full command line is not being displayed in most process listings.
32
 
     prctl(PR_SET_NAME, base::FilePath(title).BaseName().value().c_str());
33
 
 #endif  // defined(PR_SET_NAME)
34
 
+
35
 
+    // Limits the exe path part in the title
36
 
+    title = base::FilePath(title).BaseName().value().c_str();
37
 
   }
38
 
 #endif  // defined(OS_LINUX)
39