~webapps/unity-chromium-extension/14.04

« back to all changes in this revision

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