Package: ant-phone Version: 0.2.1-1 Severity: important Tags: patch Launching ant-phone on my system gives the following error message:
local bind: Operation not permitted This program was possibly killed by accident on last run. In this case, try running it with option -r. Error at session init. The problem is that all user home directories are in AFS, which inhibits the creation of .ant-phone/.socket. According to FHS chapter 5 on /var/run, "System programs that maintain transient UNIX-domain sockets must place them in this directory." I am attaching a patch that moves the socket into the /var/run/ant-phone directory and introduces a group phone. Every user who uses ant-phone has to be a member of the phone group to access that directory and be able to create the socket. -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages ant-phone depends on: ii libasound2 1.0.16-2 ALSA library ii libatk1.0-0 1.22.0-1 The ATK accessibility toolkit ii libc6 2.7-13 GNU C Library: Shared libraries ii libcairo2 1.6.4-6 The Cairo 2D vector graphics libra ii libcapi20-3 1:3.9.20060704-3.4 libraries for CAPI support ii libglib2.0-0 2.16.6-1 The GLib library of C routines ii libgtk2.0-0 2.12.11-3 The GTK+ graphical user interface ii libpango1.0-0 1.20.5-2 Layout and rendering of internatio ii libsndfile1 1.0.17-4 Library for reading/writing audio ant-phone recommends no packages. Versions of packages ant-phone suggests: ii isdnutils-base 1:3.9.20060704-3.4 ISDN utilities, the basic (minimal -- no debconf information -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages ant-phone depends on: ii libasound2 1.0.16-2 ALSA library ii libatk1.0-0 1.22.0-1 The ATK accessibility toolkit ii libc6 2.7-13 GNU C Library: Shared libraries ii libcairo2 1.6.4-6 The Cairo 2D vector graphics libra ii libcapi20-3 1:3.9.20060704-3.4 libraries for CAPI support ii libglib2.0-0 2.16.6-1 The GLib library of C routines ii libgtk2.0-0 2.12.11-3 The GTK+ graphical user interface ii libpango1.0-0 1.20.5-2 Layout and rendering of internatio ii libsndfile1 1.0.17-4 Library for reading/writing audio ant-phone recommends no packages. Versions of packages ant-phone suggests: ii isdnutils-base 1:3.9.20060704-3.4 ISDN utilities, the basic (minimal -- no debconf information
--- ant-phone-0.2.1.orig/src/server.c +++ ant-phone-0.2.1/src/server.c @@ -45,8 +45,10 @@ char *server_local_socket_name(void) { char *filename; - if (asprintf(&filename, "%s/." PACKAGE "/%s", - get_homedir(), SERVER_LOCAL_SOCKET_NAME) < 0) { +/* if (asprintf(&filename, "%s/." PACKAGE "/%s", + get_homedir(), SERVER_LOCAL_SOCKET_NAME) < 0) { */ + if (asprintf(&filename, "/var/run/" PACKAGE "/%s", + SERVER_LOCAL_SOCKET_NAME) < 0) { errprintf( "Warning: Couldn't allocate memory for history filename.\n"); return NULL; --- ant-phone-0.2.1.orig/debian/prerm +++ ant-phone-0.2.1/debian/prerm @@ -0,0 +1,9 @@ +#!/bin/sh +set -e + +# +# remove group phone +# +delgroup --quiet phone + +exit 0 --- ant-phone-0.2.1.orig/debian/postinst +++ ant-phone-0.2.1/debian/postinst @@ -0,0 +1,19 @@ +#!/bin/sh +set -e + +# +# create group phone +# +addgroup --system --quiet phone + +# +# change group owner of /var/run/ant-phone to group phone +# +chown root.phone /var/run/ant-phone + +# +# change mode of /var/run/ant-phone to 775 +# +chmod 775 /var/run/ant-phone + +exit 0 --- ant-phone-0.2.1.orig/debian/dirs +++ ant-phone-0.2.1/debian/dirs @@ -1 +1,2 @@ usr/share/pixmaps +var/run/ant-phone