View | Details | Raw Unified | Return to bug 249021
Collapse All | Expand All

(-)security/lastpass-cli/files/patch-fno-common.patch (+61 lines)
Line 0 Link Here
1
diff --git a/globals.c b/globals.c
2
new file mode 100644
3
index 0000000..59e9c30
4
--- /dev/null
5
+++ globals.c
6
@@ -0,0 +1,40 @@
7
+/*
8
+ *
9
+ * Copyright (C) 2014-2018 LastPass.
10
+ *
11
+ * This program is free software; you can redistribute it and/or modify
12
+ * it under the terms of the GNU General Public License as published by
13
+ * the Free Software Foundation; either version 2 of the License, or
14
+ * (at your option) any later version.
15
+ *
16
+ * This program is distributed in the hope that it will be useful,
17
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19
+ * GNU General Public License for more details.
20
+ *
21
+ * You should have received a copy of the GNU General Public License along
22
+ * with this program; if not, write to the Free Software Foundation, Inc.,
23
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24
+ *
25
+ * In addition, as a special exception, the copyright holders give
26
+ * permission to link the code of portions of this program with the
27
+ * OpenSSL library under certain conditions as described in each
28
+ * individual source file, and distribute linked combinations
29
+ * including the two.
30
+ *
31
+ * You must obey the GNU General Public License in all respects
32
+ * for all of the code used other than OpenSSL.  If you modify
33
+ * file(s) with this exception, you may extend this exception to your
34
+ * version of the file(s), but you are not obligated to do so.  If you
35
+ * do not wish to do so, delete this exception statement from your
36
+ * version.  If you delete this exception statement from all source
37
+ * files in the program, then also delete it here.
38
+ *
39
+ * See LICENSE.OpenSSL for more details regarding this exception.
40
+ */
41
+
42
+#include "process.h"
43
+
44
+/* Globals */
45
+int ARGC;
46
+char **ARGV;
47
diff --git a/process.h b/process.h
48
index 58c2480..4cc2cf4 100644
49
--- process.h
50
+++ process.h
51
@@ -4,8 +4,8 @@
52
 #include <stdbool.h>
53
 #include <sys/types.h>
54
 
55
-int ARGC;
56
-char **ARGV;
57
+extern int ARGC;
58
+extern char **ARGV;
59
 
60
 void process_set_name(const char *name);
61
 void process_disable_ptrace(void);

Return to bug 249021