-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathminicom-2.7.1_snap.patch
More file actions
25 lines (23 loc) · 997 Bytes
/
minicom-2.7.1_snap.patch
File metadata and controls
25 lines (23 loc) · 997 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
diff -ru minicom-2.7.1/src/minicom.c minicom-2.7.1.snap/src/minicom.c
--- minicom-2.7.1/src/minicom.c 2013-12-08 10:34:44.000000000 +0000
+++ minicom-2.7.1.snap/src/minicom.c 2017-07-27 19:56:38.227962809 +0000
@@ -1325,7 +1325,7 @@
strncpy(username, pwd->pw_name, sizeof(username));
/* Get personal parameter file */
- snprintf(pparfile, sizeof(pparfile), "%s/.minirc.%s", homedir, use_port);
+ snprintf(pparfile, sizeof(pparfile), "%s/snap/minicom/common/.minirc.%s", homedir, use_port);
read_parms();
num_hist_lines = atoi(P_HISTSIZE);
diff -ru minicom-2.7.1/src/minicom.h minicom-2.7.1.snap/src/minicom.h
--- minicom-2.7.1/src/minicom.h 2013-12-08 10:26:03.000000000 +0000
+++ minicom-2.7.1.snap/src/minicom.h 2017-07-27 19:58:37.111635016 +0000
@@ -324,3 +324,9 @@
TIMESTAMP_LINE_PER_SECOND,
TIMESTAMP_LINE_NR_OF_OPTIONS, // must be last
};
+
+#undef CONFDIR
+#define CONFDIR "/var/snap/minicom/common"
+#undef UUCPLOCK
+#define UUCPLOCK "/var/snap/minicom/common"
+