Package: ytalk
Version: 3.3.0-3
Severity: wishlist
When starting a shell, ytalk does not honor the SHELL environment
variable. Also, it uses my login even when there is a variable USER with
a different value. Here are the small patches:
--- ../../ytalk-3.3.0/src/user.c 2005-01-18 22:20:05.000000000 +0100
+++ ytalk-3.3.0/src/user.c 2006-07-14 18:44:33.000000000 +0200
@@ -23,6 +23,7 @@
#include "mem.h"
#include <pwd.h>
+#include <stdlib.h>
#include <string.h>
extern int dont_change_my_addr;
@@ -45,6 +46,8 @@
ylong uid;
{
register struct passwd *pw;
+ char* c;
+ if ((c = getenv("USER")) != NULL) return c;
passwd_opened = 1;
if ((pw = getpwuid(uid)) == NULL)
return NULL;
--- ../../ytalk-3.3.0/src/exec.c 2005-02-07 18:32:43.000000000 +0100
+++ ytalk-3.3.0/src/exec.c 2006-06-26 20:19:05.000000000 +0200
@@ -189,11 +189,14 @@
#endif
pw = getpwuid(myuid);
+ shell=getenv("SHELL");
+ if(shell==NULL){
if (pw != NULL) {
shell = pw->pw_shell;
} else {
shell = "/bin/sh";
}
+ }
calculate_size(&prows, &pcols);
-- System Information:
Debian Release: lenny/sid
APT prefers stable
APT policy: (500, 'stable'), (50, 'testing'), (10, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.18-4-686 (SMP w/1 CPU core)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash
Versions of packages ytalk depends on:
ii libc6 2.7-3 GNU C Library: Shared libraries
ii libncurses5 5.6+20071013-1 Shared libraries for terminal hand
ii talkd 0.17-13 Remote user communication server
ytalk recommends no packages.
-- debconf-show failed
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]