[packages/dropto] Rel 3

arekm arekm at pld-linux.org
Thu May 21 15:21:40 CEST 2026


commit 953a2538980ad27f31fcd568d7b56ddac9a62491
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu May 21 15:21:24 2026 +0200

    Rel 3

 dropto-includes.patch | 17 +++++++++++++++++
 dropto.spec           |  4 +++-
 2 files changed, 20 insertions(+), 1 deletion(-)
---
diff --git a/dropto.spec b/dropto.spec
index 7dc0272..52146a5 100644
--- a/dropto.spec
+++ b/dropto.spec
@@ -1,11 +1,12 @@
 Summary:	Run a program as another user
 Name:		dropto
 Version:	0.3.2
-Release:	2
+Release:	3
 License:	GPL v3
 Group:		Base/Utilities
 Source0:	http://users.ox.ac.uk/~tom/source/dropto/%{name}-%{version}.tar.gz
 # Source0-md5:	f1a6e3b7e94f16336cf66d385dbe2d96
+Patch0:		%{name}-includes.patch
 URL:		http://users.ox.ac.uk/~tom/dropto/dropto.8
 BuildRequires:	asciidoc
 BuildRequires:	xmlto
@@ -20,6 +21,7 @@ supplementary group membership.
 
 %prep
 %setup -q
+%patch -P0 -p1
 
 %build
 %configure
diff --git a/dropto-includes.patch b/dropto-includes.patch
new file mode 100644
index 0000000..b7edcc4
--- /dev/null
+++ b/dropto-includes.patch
@@ -0,0 +1,17 @@
+diff -urN dropto-0.3.2.orig/src/dropto.c dropto-0.3.2/src/dropto.c
+--- dropto-0.3.2.orig/src/dropto.c	2011-02-24 22:08:04.000000000 +0100
++++ dropto-0.3.2/src/dropto.c	2026-05-21 01:19:45.889552352 +0200
+@@ -5,11 +5,12 @@
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <string.h>
++#include <unistd.h>
+ 
+ const char *account;
+ struct passwd *pw;
+ 
+-int main(int argc,const char *const *argv,const char *const *envp)
++int main(int argc, char **argv, char **envp)
+ {
+   account = *++argv;
+   if (!account || !*++argv) {
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/dropto.git/commitdiff/953a2538980ad27f31fcd568d7b56ddac9a62491



More information about the pld-cvs-commit mailing list