diff options
-rw-r--r-- | meta-oe/recipes-support/switchtec-user/switchtec-user/0001-cli-Fix-format-security-warning.patch | 27 | ||||
-rw-r--r-- | meta-oe/recipes-support/switchtec-user/switchtec-user_4.1.bb | 23 |
2 files changed, 50 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/switchtec-user/switchtec-user/0001-cli-Fix-format-security-warning.patch b/meta-oe/recipes-support/switchtec-user/switchtec-user/0001-cli-Fix-format-security-warning.patch new file mode 100644 index 0000000000..ff2743eb68 --- /dev/null +++ b/meta-oe/recipes-support/switchtec-user/switchtec-user/0001-cli-Fix-format-security-warning.patch | |||
@@ -0,0 +1,27 @@ | |||
1 | From 2d61587f85d1bf57287d12b470afb94c0bf9249d Mon Sep 17 00:00:00 2001 | ||
2 | From: Davide Cavalca <dcavalca@fedoraproject.org> | ||
3 | Date: Mon, 27 Jun 2022 16:54:35 -0700 | ||
4 | Subject: [PATCH] cli: Fix format security warning | ||
5 | |||
6 | Upstream-Status: Submitted [https://github.com/Microsemi/switchtec-user/pull/316] | ||
7 | |||
8 | --- | ||
9 | cli/graph.c | 2 +- | ||
10 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
11 | |||
12 | diff --git a/cli/graph.c b/cli/graph.c | ||
13 | index 5748914..95609de 100644 | ||
14 | --- a/cli/graph.c | ||
15 | +++ b/cli/graph.c | ||
16 | @@ -134,7 +134,7 @@ static void draw_status(WINDOW *win, int x_off, int x_cnt, const char *status) | ||
17 | mvwprintw(win, 0, 0, " "); | ||
18 | for (i = 0; i < x_cnt * 2 + x_off; i++) | ||
19 | mvwaddch(win, 1, i, ' '); | ||
20 | - mvwprintw(win, 1, x_off, status); | ||
21 | + mvwprintw(win, 1, x_off, "%s", status); | ||
22 | wrefresh(win); | ||
23 | } | ||
24 | |||
25 | -- | ||
26 | 2.39.2 | ||
27 | |||
diff --git a/meta-oe/recipes-support/switchtec-user/switchtec-user_4.1.bb b/meta-oe/recipes-support/switchtec-user/switchtec-user_4.1.bb new file mode 100644 index 0000000000..6d5c9f1a67 --- /dev/null +++ b/meta-oe/recipes-support/switchtec-user/switchtec-user_4.1.bb | |||
@@ -0,0 +1,23 @@ | |||
1 | SUMMARY = "Easy to use CLI and C library for communicating with Microsemi's Switchtec management interface" | ||
2 | HOMEPAGE = "https://github.com/Microsemi/switchtec-user" | ||
3 | SECTION = "console/utils" | ||
4 | LICENSE = "MIT" | ||
5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=3d6b07c89629cff2990d2e8e1f4c2382" | ||
6 | DEPENDS = "ncurses openssl" | ||
7 | SRCREV = "762ba441d2c02685f98e5f56e984db033bab279a" | ||
8 | |||
9 | SRC_URI = " \ | ||
10 | git://github.com/Microsemi/switchtec-user.git;protocol=https;branch=master \ | ||
11 | file://0001-cli-Fix-format-security-warning.patch \ | ||
12 | " | ||
13 | SRC_URI[sha256sum] = "f98c1fe23e1d7a11fb23e8bcf9b563929fc805ea669191a7fd525ad16519f655" | ||
14 | |||
15 | S = "${WORKDIR}/git" | ||
16 | |||
17 | inherit autotools-brokensep pkgconfig | ||
18 | |||
19 | EXTRA_OEMAKE = "DESTDIR=\"${D}\" PREFIX=\"${prefix}\" LDCONFIG=\"true\"" | ||
20 | |||
21 | do_install () { | ||
22 | oe_runmake install | ||
23 | } | ||