Package: switchsh
Version: 0~20070801-2
Severity: wishlist
Tags: patch

It would be useful (and consistent with other utilities that call
external programs) if switchsh used execvp() instead of execv(), so
that things like "switchsh make" or
"switchsh dpkg -i <package_with_bashism_in_maintainer_script.deb> work.

Here is a patch for that:

--8<---------------cut here---------------start------------->8---
--- switchsh.c~ 2008-05-29 01:24:51.000000000 +0200
+++ switchsh.c  2008-10-28 16:38:39.000000000 +0100
@@ -114,7 +114,7 @@
     if (setuid(getuid()) < 0)
        err_sys("cannot drop UID 0");
 
-    execv(*argv, argv);
+    execvp(*argv, argv);
     err_sys("Can't exec %s", argv[0]);
 }
 
--8<---------------cut here---------------end--------------->8---


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (x86_64)

Kernel: Linux 2.6.27.4-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages switchsh depends on:
ii  libc6                         2.7-15     GNU C Library: Shared libraries

switchsh recommends no packages.

switchsh suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to