Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bird2/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=bird2
PKG_VERSION:=2.17.2
PKG_RELEASE:=1
PKG_RELEASE:=2

PKG_SOURCE:=bird-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://bird.nic.cz/download/
Expand Down
29 changes: 29 additions & 0 deletions bird2/patches/0001-birdc-Use-var-tmp-for-history-file.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
From e77b14853c1dcb3034e1af155f49e3b943203c4e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Toke=20H=C3=B8iland-J=C3=B8rgensen?= <toke@toke.dk>
Date: Mon, 24 Nov 2025 12:57:52 +0100
Subject: [PATCH] birdc: Use /var/tmp for history file
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

We don't want birdc to write its history file to flash, so hard-code the
history file to /var/tmp instead.

Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
---
client/birdc.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)

--- a/client/birdc.c
+++ b/client/birdc.c
@@ -146,9 +146,7 @@ input_help(int arg, int key UNUSED)
void
history_init(void)
{
- const char *homedir = getenv("HOME");
- if (!homedir)
- homedir = ".";
+ const char *homedir = "/var/tmp";
history_file = malloc(strlen(homedir) + sizeof(HISTORY));
if (!history_file)
die("couldn't alloc enough memory for history file name");
2 changes: 1 addition & 1 deletion bird3/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=bird3
PKG_VERSION:=3.1.4
PKG_RELEASE:=1
PKG_RELEASE:=2

PKG_SOURCE:=bird-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://bird.nic.cz/download/
Expand Down
29 changes: 29 additions & 0 deletions bird3/patches/0001-birdc-Use-var-tmp-for-history-file.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
From e77b14853c1dcb3034e1af155f49e3b943203c4e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Toke=20H=C3=B8iland-J=C3=B8rgensen?= <toke@toke.dk>
Date: Mon, 24 Nov 2025 12:57:52 +0100
Subject: [PATCH] birdc: Use /var/tmp for history file
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

We don't want birdc to write its history file to flash, so hard-code the
history file to /var/tmp instead.

Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
---
client/birdc.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)

--- a/client/birdc.c
+++ b/client/birdc.c
@@ -146,9 +146,7 @@ input_help(int arg, int key UNUSED)
void
history_init(void)
{
- const char *homedir = getenv("HOME");
- if (!homedir)
- homedir = ".";
+ const char *homedir = "/var/tmp";
history_file = malloc(strlen(homedir) + sizeof(HISTORY));
if (!history_file)
die("couldn't alloc enough memory for history file name");
Loading