Package: am-utils Version: 6.1.5-12 Severity: normal Tags: patch
Hi, There's a bug in the pawd utility from the am-utils package. When getcwd fails, it writes "random" junk on the screen. To reproduce: $ mkdir /tmp/anewdirectory $ cd /tmp/anewdirectory $ rm /tmp/anewdirectory $ pawd Regards, Yair. -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (990, 'testing'), (500, 'oldstable'), (500, 'unstable'), (500, 'stable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.28mos-2 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages am-utils depends on: ii debconf 1.5.26 Debian configuration management sy ii debianutils 3.0.1 Miscellaneous utilities specific t ii libamu4 6.1.5-12 Support library for amd the 4.4BSD ii libc6 2.9-4 GNU C Library: Shared libraries ii libgdbm3 1.8.3-4 GNU dbm database routines (runtime ii libhesiod0 3.0.2-19 Project Athena's DNS-based directo ii libldap-2.4-2 2.4.11-1 OpenLDAP libraries ii libwrap0 7.6.q-16 Wietse Venema's TCP wrappers libra ii perl 5.10.0-19 Larry Wall's Practical Extraction ii portmap 6.0-9 RPC port mapper ii ucf 3.0018 Update Configuration File: preserv am-utils recommends no packages. Versions of packages am-utils suggests: ii am-utils-doc 6.1.5-12 automounter utilities documentatio pn nis <none> (no description available) -- debconf information excluded
--- amq/pawd.c.orig 2007-01-20 22:30:32.000000000 +0200 +++ amq/pawd.c 2009-04-27 15:51:29.000000000 +0300 @@ -246,7 +246,7 @@ if (argc == 1) { wd = getawd(tmp_buf, sizeof(tmp_buf)); if (wd == NULL) { - fprintf(stderr, "pawd: %s\n", tmp_buf); + perror("pawd"); exit(1); } else { fprintf(stdout, "%s\n", wd);