reptyr: update to 0.7.0.

This commit is contained in:
Leah Neukirchen 2018-12-06 14:28:37 +01:00
parent 8ba5e66f13
commit a4152124fb
2 changed files with 4 additions and 54 deletions

View file

@ -1,48 +0,0 @@
From fa0d63ff8c488be15976e5353580b565e85586a1 Mon Sep 17 00:00:00 2001
From: Nelson Elhage <nelhage@nelhage.com>
Date: Sat, 18 Feb 2017 16:36:40 -0800
Subject: [PATCH 1/2] Placate a gcc7 warning.
(And handle a too-long temp directory with an error instead of a likely
crash)
---
attach.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
--- attach.c
+++ attach.c
@@ -389,8 +389,11 @@ int setup_steal_socket(struct steal_pty_state *steal) {
return errno;
steal->addr_un.sun_family = AF_UNIX;
- snprintf(steal->addr_un.sun_path, sizeof(steal->addr_un.sun_path),
- "%s/reptyr.sock", steal->tmpdir);
+ if (snprintf(steal->addr_un.sun_path, sizeof(steal->addr_un.sun_path),
+ "%s/reptyr.sock", steal->tmpdir) >= sizeof(steal->addr_un.sun_path)) {
+ error("tmpdir path too long!");
+ return ENAMETOOLONG;
+ }
if ((steal->sockfd = socket(AF_UNIX, SOCK_DGRAM, 0)) < 0)
return errno;
From b45fd9238958fcf2d8f3d6fc23e6d491febea2ac Mon Sep 17 00:00:00 2001
From: Nelson Elhage <nelhage@nelhage.com>
Date: Sat, 18 Feb 2017 16:38:18 -0800
Subject: [PATCH 2/2] Include sysmacros.h
See #81
---
platform/linux/linux.h | 1 +
1 file changed, 1 insertion(+)
--- platform/linux/linux.h
+++ platform/linux/linux.h
@@ -40,6 +40,7 @@
#include <sys/ptrace.h>
#include <asm/ptrace.h>
#include <sys/types.h>
+#include <sys/sysmacros.h>
#include <sys/user.h>
#include <unistd.h>
#include <stdlib.h>

View file

@ -1,19 +1,17 @@
# Template file for 'reptyr'
pkgname=reptyr
version=0.6.2
revision=3
version=0.7.0
revision=1
wrksrc="${pkgname}-${pkgname}-${version}"
build_style=gnu-makefile
make_install_args="BASHCOMPDIR=/usr/share/bash-completion/completions"
short_desc="Reparent a running program to a new terminal"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="MIT"
homepage="https://github.com/nelhage/reptyr"
distfiles="https://github.com/nelhage/reptyr/archive/${pkgname}-${version}.tar.gz"
checksum=c73de510eeedc37a0aac63ea4be9a3c841bbbda029232f871b15d53733a0ee1e
checksum=b1c539f4c8e695d575f5d4593e64a3a04d63b0f0c5d34e6c735fd28e365d4983
post_extract() {
sed -i 's/enum __ptrace_request/int/g' platform/linux/linux_ptrace.c
}
post_install() {
vlicense COPYING LICENSE
}