Report forwarded to debian-bugs-dist@lists.debian.org, Michael Stone <mstone@debian.org>:
Bug#89335; Package shellutils.   debian-bugs-dist@lists.debian.orgMichael Stone  Subject: Bug#89335: wishlist: tool for printing user's home directory Reply-To: Erich Schubert , 89335@bugs.debian.org Resent-From: Erich Schubert Resent-To: debian-bugs-dist@lists.debian.org Resent-CC: Michael Stone Resent-Date: Sun, 11 Mar 2001 21:48:51 GMT Resent-Message-ID: Resent-Sender: owner@bugs.debian.org X-Debian-PR-Message: report 89335 X-Debian-PR-Package: shellutils X-Debian-PR-Keywords: X-Loop: owner@bugs.debian.org Received: via spool by bugs@bugs.debian.org id=B.98434728420056 (code B ref -1); Sun, 11 Mar 2001 21:48:51 GMT From: Erich Schubert To: Debian Bug Tracking System X-Reportbug-Version: 1.14 X-Mailer: reportbug 1.14 Date: Sun, 11 Mar 2001 22:46:02 +0100 Message-Id: <20010311214602.0B89548583@erich> X-Sender: 520031278902-0001@t-dialin.net Delivered-To: submit@bugs.debian.org Package: shellutils Version: 2.0.11-2 Severity: wishlist i'd like to have a tool for printing the home directory of a user (real user / effective user / user passed on command line) I've run across this need 3 times in shell scripting last week... I wrote these scripts in perl then... Maybe there is a simlar utility already in Debian, but i havn't found it and everybody told me to awk /etc/passwd - but i'm running LDAP... And i think such a tool belong's right next to "groups" and "id". Might even be upstream-wishlist... This surely isn't hard to write, basically just something like this: (Sorry for the bad code, but this is the first C Program i ever wrote on my own and havn't hacked some other's program ;) ------- #include #include #include #include #include int main(int argc, char **argv) { struct passwd *user; if (argc <=1) { /* without parameters, get current user id's home */ user=getpwuid(geteuid()); } else if (strcmp(argv[1],"-r") == 0) { /* get real user id */ user=getpwuid(getuid()); } else if (strcmp(argv[1],"-h") == 0) { /* show help screen */ printf("Usage: homedir [OPTION] [USERNAME]\n"); printf("Print home directory of USERNAME, or the current user.\n\n"); printf(" -r print home of the real instead of effecive user\n"); printf(" -h display this help and exit\n"); exit(0); } else { user=getpwnam(argv[1]); } if (user) { printf("%s\n",user->pw_dir); } else { fprintf(stderr, "Error: could not get home directory\n"); exit(1); } exit(0); } ------- this lack's to course more detailed error messages and i18n/l10n... Greetings, Erich -- System Information Debian Release: testing/unstable Architecture: i386 Kernel: Linux erich.xmldesign.de 2.4.2-ac2 #1 Fre Feb 23 13:48:55 CET 2001 i686 Versions of packages shellutils depends on: ii libc6 2.2.2-1 GNU C Library: Shared libraries an ii login 20000902-3 System login tools   Acknowledgement sent to Erich Schubert <erich@erich.xmldesign.de>:
New Bug report received and forwarded. Copy sent to Michael Stone <mstone@debian.org>.   -t  From: owner@bugs.debian.org (Debian Bug Tracking System) To: Erich Schubert Subject: Bug#89335: Acknowledgement (wishlist: tool for printing user's home directory) Message-ID: In-Reply-To: <20010311214602.0B89548583@erich> References: <20010311214602.0B89548583@erich> X-Debian-PR-Message: ack 89335 Thank you for the problem report you have sent regarding Debian. This is an automatically generated reply, to let you know your message has been received. It is being forwarded to the developers mailing list for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): Michael Stone If you wish to submit further information on your problem, please send it to 89335@bugs.debian.org (and *not* to bugs@bugs.debian.org). Please do not reply to the address at the top of this message, unless you wish to report a problem with the Bug-tracking system. Darren Benham (administrator, Debian Bugs database)   Received: (at submit) by bugs.debian.org; 11 Mar 2001 21:48:04 +0000 From erich@erich.dyn.mucl.de Sun Mar 11 15:48:04 2001 Return-path: Received: from mailout06.sul.t-online.com [194.25.134.19] by master.debian.org with esmtp (Exim 3.12 1 (Debian)) id 14cDh5-0005DG-00; Sun, 11 Mar 2001 15:48:03 -0600 Received: from fwd00.sul.t-online.com by mailout06.sul.t-online.com with smtp id 14cDh1-0007qG-03; Sun, 11 Mar 2001 22:47:59 +0100 Received: from erich (520031278902-0001@[217.80.37.95]) by fmrl00.sul.t-online.com with esmtp id 14cDgu-0L97BoC; Sun, 11 Mar 2001 22:47:52 +0100 Received: by erich (Postfix, from userid 1000) id 0B89548583; Sun, 11 Mar 2001 22:46:02 +0100 (CET) From: Erich Schubert To: Debian Bug Tracking System Subject: wishlist: tool for printing user's home directory X-Reportbug-Version: 1.14 X-Mailer: reportbug 1.14 Date: Sun, 11 Mar 2001 22:46:02 +0100 Message-Id: <20010311214602.0B89548583@erich> X-Sender: 520031278902-0001@t-dialin.net Delivered-To: submit@bugs.debian.org Package: shellutils Version: 2.0.11-2 Severity: wishlist i'd like to have a tool for printing the home directory of a user (real user / effective user / user passed on command line) I've run across this need 3 times in shell scripting last week... I wrote these scripts in perl then... Maybe there is a simlar utility already in Debian, but i havn't found it and everybody told me to awk /etc/passwd - but i'm running LDAP... And i think such a tool belong's right next to "groups" and "id". Might even be upstream-wishlist... This surely isn't hard to write, basically just something like this: (Sorry for the bad code, but this is the first C Program i ever wrote on my own and havn't hacked some other's program ;) ------- #include #include #include #include #include int main(int argc, char **argv) { struct passwd *user; if (argc <=1) { /* without parameters, get current user id's home */ user=getpwuid(geteuid()); } else if (strcmp(argv[1],"-r") == 0) { /* get real user id */ user=getpwuid(getuid()); } else if (strcmp(argv[1],"-h") == 0) { /* show help screen */ printf("Usage: homedir [OPTION] [USERNAME]\n"); printf("Print home directory of USERNAME, or the current user.\n\n"); printf(" -r print home of the real instead of effecive user\n"); printf(" -h display this help and exit\n"); exit(0); } else { user=getpwnam(argv[1]); } if (user) { printf("%s\n",user->pw_dir); } else { fprintf(stderr, "Error: could not get home directory\n"); exit(1); } exit(0); } ------- this lack's to course more detailed error messages and i18n/l10n... Greetings, Erich -- System Information Debian Release: testing/unstable Architecture: i386 Kernel: Linux erich.xmldesign.de 2.4.2-ac2 #1 Fre Feb 23 13:48:55 CET 2001 i686 Versions of packages shellutils depends on: ii libc6 2.2.2-1 GNU C Library: Shared libraries an ii login 20000902-3 System login tools   Information forwarded to debian-bugs-dist@lists.debian.org, Michael Stone <mstone@debian.org>:
Bug#89335; Package shellutils.   debian-bugs-dist@lists.debian.orgMichael Stone  Subject: Bug#89335: wishlist: tool for printing user's home directory Reply-To: Eirik Fuller , 89335@bugs.debian.org Resent-From: Eirik Fuller Resent-To: debian-bugs-dist@lists.debian.org Resent-CC: Michael Stone Resent-Date: Thu, 31 May 2001 22:03:32 GMT Resent-Message-ID: Resent-Sender: owner@bugs.debian.org X-Debian-PR-Message: report 89335 X-Debian-PR-Package: shellutils X-Debian-PR-Keywords: X-Loop: owner@bugs.debian.org Received: via spool by 89335-submit@bugs.debian.org id=B89335.99134325618629 (code B ref 89335); Thu, 31 May 2001 22:03:32 GMT From: Eirik Fuller To: Erich Schubert Cc: 89335@bugs.debian.org Message-Id: <20010531210734.9B9AF40014@hackrat.com> Date: Thu, 31 May 2001 14:07:34 -0700 (PDT) Delivered-To: 89335@bugs.debian.org The following perl -e 'use User::pwent;printf "%s\n",getpwnam("eirik")->dir' works for me. Substitute for "eirik" as necessary.   Acknowledgement sent to Eirik Fuller <eirik@hackrat.com>:
Extra info received and forwarded to list. Copy sent to Michael Stone <mstone@debian.org>.   -t  From: owner@bugs.debian.org (Debian Bug Tracking System) To: Eirik Fuller Subject: Bug#89335: Info received (was wishlist: tool for printing user's home directory) Message-ID: In-Reply-To: <20010531210734.9B9AF40014@hackrat.com> References: <20010531210734.9B9AF40014@hackrat.com> X-Debian-PR-Message: ack-info-maintonly 89335 Thank you for the additional information you have supplied regarding this problem report. It has been forwarded to the developer(s) and to the developers mailing list to accompany the original report. Your message has been sent to the package maintainer(s): Michael Stone If you wish to continue to submit further information on your problem, please send it to 89335@bugs.debian.org, as before. Please do not reply to the address at the top of this message, unless you wish to report a problem with the Bug-tracking system. Darren Benham (administrator, Debian Bugs database)   Received: (at 89335) by bugs.debian.org; 31 May 2001 21:07:36 +0000 From eirik@hackrat.com Thu May 31 16:07:36 2001 Return-path: Received: from hackrat.com [24.219.120.214] by master.debian.org with esmtp (Exim 3.12 1 (Debian)) id 155ZfM-0004qQ-00; Thu, 31 May 2001 16:07:36 -0500 Received: by hackrat.com (Postfix, from userid 1086) id 9B9AF40014; Thu, 31 May 2001 14:07:34 -0700 (PDT) From: Eirik Fuller To: Erich Schubert Cc: 89335@bugs.debian.org Subject: wishlist: tool for printing user's home directory Message-Id: <20010531210734.9B9AF40014@hackrat.com> Date: Thu, 31 May 2001 14:07:34 -0700 (PDT) Delivered-To: 89335@bugs.debian.org The following perl -e 'use User::pwent;printf "%s\n",getpwnam("eirik")->dir' works for me. Substitute for "eirik" as necessary.   Changed Bug title. Request was from Thomas Hood <jdthood@yahoo.co.uk> to control@bugs.debian.org.   Received: (at control) by bugs.debian.org; 28 Dec 2005 17:39:57 +0000 From jdthood@yahoo.co.uk Wed Dec 28 09:39:57 2005 Return-path: Received: from smtp-out1.tiscali.nl ([195.241.79.176]) by spohr.debian.org with esmtp (Exim 4.50) id 1ErfHJ-0001mH-0c for control@bugs.debian.org; Wed, 28 Dec 2005 09:39:57 -0800 Received: from [82.171.132.56] (helo=82-171-132-56.dsl.ip.tiscali.nl) by smtp-out1.tiscali.nl with esmtp (Tiscali http://www.tiscali.nl) id 1ErfHI-0004e5-5A for ; Wed, 28 Dec 2005 18:39:56 +0100 Received: from [127.0.0.1] (localhost [127.0.0.1]) by 82-171-132-56.dsl.ip.tiscali.nl (Postfix) with ESMTP id 9D46CBFA98 for ; Wed, 28 Dec 2005 18:40:00 +0100 (CET) Message-ID: <43B2CDF0.4030303@yahoo.co.uk> Date: Wed, 28 Dec 2005 18:40:00 +0100 From: Thomas Hood User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Debian Bug Tracking System Subject: retitle X-Enigmail-Version: 0.92.1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Delivered-To: control@bugs.debian.org X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 (1.212-2003-09-23-exp) on spohr.debian.org X-Spam-Level: X-Spam-Status: No, hits=-4.0 required=4.0 tests=BAYES_00,ONEWORD, VALID_BTS_CONTROL autolearn=no version=2.60-bugs.debian.org_2005_01_02 retitle 89335 coreutils: Please add tool for printing user's home directory stop   Message sent on to Erich Schubert <erich@erich.xmldesign.de>:
Bug#89335.   Erich Schubert  X-Loop: owner@bugs.debian.org Subject: Bug#89335: Still a wish? Reply-To: Thomas Hood , 89335-quiet@bugs.debian.org Resent-To: Erich Schubert Resent-Date: Wed, 28 Dec 2005 17:48:26 UTC Resent-Message-ID: Resent-Sender: owner@bugs.debian.org X-Debian-PR-Message: report 89335 X-Debian-PR-Package: shellutils X-Debian-PR-Keywords: Received: via spool by 89335-submitter@bugs.debian.org id=U89335.11357916857807 (code U ref 89335); Wed, 28 Dec 2005 17:48:26 UTC Received: (at 89335-submitter) by bugs.debian.org; 28 Dec 2005 17:41:25 +0000 Received: from smtp-out1.tiscali.nl ([195.241.79.176]) by spohr.debian.org with esmtp (Exim 4.50) id 1ErfIj-00021V-34 for 89335-submitter@bugs.debian.org; Wed, 28 Dec 2005 09:41:25 -0800 Received: from [82.171.132.56] (helo=82-171-132-56.dsl.ip.tiscali.nl) by smtp-out1.tiscali.nl with esmtp (Tiscali http://www.tiscali.nl) id 1ErfIi-0004jm-NI for <89335-submitter@bugs.debian.org>; Wed, 28 Dec 2005 18:41:24 +0100 Received: from [127.0.0.1] (localhost [127.0.0.1]) by 82-171-132-56.dsl.ip.tiscali.nl (Postfix) with ESMTP id 6DC3ABFA98 for <89335-submitter@bugs.debian.org>; Wed, 28 Dec 2005 18:41:29 +0100 (CET) Message-ID: <43B2CE49.9030306@yahoo.co.uk> Date: Wed, 28 Dec 2005 18:41:29 +0100 From: Thomas Hood User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en MIME-Version: 1.0 To: 89335-submitter@bugs.debian.org X-Enigmail-Version: 0.92.1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 (1.212-2003-09-23-exp) on spohr.debian.org X-Spam-Level: X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no version=2.60-bugs.debian.org_2005_01_02 Erich Schubert wrote: > i'd like to have a tool for printing the home directory of a user Eirik Fuller wrote: > The following [perl script] works for me. Erich: Do you still wish the wish you wished? -- Thomas Hood   Received: (at 89335-submitter) by bugs.debian.org; 28 Dec 2005 17:41:25 +0000 From jdthood@yahoo.co.uk Wed Dec 28 09:41:25 2005 Return-path: Received: from smtp-out1.tiscali.nl ([195.241.79.176]) by spohr.debian.org with esmtp (Exim 4.50) id 1ErfIj-00021V-34 for 89335-submitter@bugs.debian.org; Wed, 28 Dec 2005 09:41:25 -0800 Received: from [82.171.132.56] (helo=82-171-132-56.dsl.ip.tiscali.nl) by smtp-out1.tiscali.nl with esmtp (Tiscali http://www.tiscali.nl) id 1ErfIi-0004jm-NI for <89335-submitter@bugs.debian.org>; Wed, 28 Dec 2005 18:41:24 +0100 Received: from [127.0.0.1] (localhost [127.0.0.1]) by 82-171-132-56.dsl.ip.tiscali.nl (Postfix) with ESMTP id 6DC3ABFA98 for <89335-submitter@bugs.debian.org>; Wed, 28 Dec 2005 18:41:29 +0100 (CET) Message-ID: <43B2CE49.9030306@yahoo.co.uk> Date: Wed, 28 Dec 2005 18:41:29 +0100 From: Thomas Hood User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en MIME-Version: 1.0 To: 89335-submitter@bugs.debian.org Subject: Still a wish? X-Enigmail-Version: 0.92.1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 (1.212-2003-09-23-exp) on spohr.debian.org X-Spam-Level: X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no version=2.60-bugs.debian.org_2005_01_02 Erich Schubert wrote: > i'd like to have a tool for printing the home directory of a user Eirik Fuller wrote: > The following [perl script] works for me. Erich: Do you still wish the wish you wished? -- Thomas Hood   Information forwarded to debian-bugs-dist@lists.debian.org, Michael Stone <mstone@debian.org>:
Bug#89335; Package shellutils.   debian-bugs-dist@lists.debian.orgMichael Stone  X-Loop: owner@bugs.debian.org Subject: Bug#89335: Still a wish? Reply-To: Erich Schubert , 89335@bugs.debian.org Resent-From: Erich Schubert Resent-To: debian-bugs-dist@lists.debian.org Resent-CC: Michael Stone Resent-Date: Wed, 28 Dec 2005 19:18:12 UTC Resent-Message-ID: Resent-Sender: owner@bugs.debian.org X-Debian-PR-Message: report 89335 X-Debian-PR-Package: shellutils X-Debian-PR-Keywords: Received: via spool by 89335-submit@bugs.debian.org id=B89335.113579718420923 (code B ref 89335); Wed, 28 Dec 2005 19:18:12 UTC Received: (at 89335) by bugs.debian.org; 28 Dec 2005 19:13:04 +0000 Received: from legolas.drinsama.de ([62.91.17.164] ident=postfix) by spohr.debian.org with esmtp (Exim 4.50) id 1ErgjQ-0005R4-3O for 89335@bugs.debian.org; Wed, 28 Dec 2005 11:13:04 -0800 Received: from localhost (localhost [127.0.0.1]) by localhost (Postfix) with ESMTP id 29578C4C084; Wed, 28 Dec 2005 20:13:02 +0100 (CET) Received: from legolas.drinsama.de ([127.0.0.1]) by localhost (legolas [127.0.0.1]) (amavisd-new, port 10024) with SMTP id 21061-06; Wed, 28 Dec 2005 20:13:01 +0100 (CET) Received: from wintermute.xmldesign.de (p549A2C27.dip0.t-ipconnect.de [84.154.44.39]) by legolas.drinsama.de (Postfix) with ESMTP id 0A6B0C4C083; Wed, 28 Dec 2005 20:13:01 +0100 (CET) Received: from wintermute.xmldesign.de (wintermute.xmldesign.de [127.0.0.1]) by wintermute.xmldesign.de (Postfix) with ESMTP id 87D972352B7; Wed, 28 Dec 2005 20:13:00 +0100 (CET) From: Erich Schubert To: Thomas Hood , 89335@bugs.debian.org In-Reply-To: <43B2CE49.9030306@yahoo.co.uk> References: <43B2CE49.9030306@yahoo.co.uk> Content-Type: text/plain; charset=ISO-8859-15 Organization: Debian GNU/Linux Developers Date: Wed, 28 Dec 2005 20:12:59 +0100 Message-Id: <1135797180.30055.17.camel@wintermute.xmldesign.de> Mime-Version: 1.0 X-Mailer: Evolution 2.4.1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at mucl.de X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 (1.212-2003-09-23-exp) on spohr.debian.org X-Spam-Level: X-Spam-Status: No, hits=-5.0 required=4.0 tests=BAYES_01,HAS_BUG_NUMBER autolearn=no version=2.60-bugs.debian.org_2005_01_02 Hello Thomas, > > i'd like to have a tool for printing the home directory of a user > Erich: Do you still wish the wish you wished? Well, I currently don't remember where/what I used it for, but after all this is a common task, identifying a users homedir... something I'd like to avoid starting a perl interpreter for. I'm pretty sure, the "homedir.c" program I used in the bug report is still being used on the box I needed it on... IMHO it makes still sense to have such a tool standardized, more than firing up a perl interpreter and such. When avoiding printf() and using write() instead, building it with diet gcc, the static binary is around 2k... ;-) and without diet it's less then 4k. I mean, it's not a huge thing, is it? I am aware that usually you can do things like "echo ~username" to achieve the same result, but how would you e.g. obtain another users home directory in procmail? Does procmail support ~username expansion? I don't really care anymore, though. So go ahead and just close the bug. best regards, Erich Schubert --=20 erich@(vitavonni.de|debian.org) -- GPG Key ID: 4B3A135C (o_ A polar bear is a rectangular bear after a coordinate transform. //\ Mit seiner Zeit gehen wollen, hei=DFt, schon =FCberholt zu sein. = V_/_ --- Eug=E8ne Ionesco   Acknowledgement sent to Erich Schubert <erich@debian.org>:
Extra info received and forwarded to list. Copy sent to Michael Stone <mstone@debian.org>.   -t  X-Loop: owner@bugs.debian.org From: owner@bugs.debian.org (Debian Bug Tracking System) To: Erich Schubert Subject: Bug#89335: Info received (was Bug#89335: Still a wish?) Message-ID: In-Reply-To: <1135797180.30055.17.camel@wintermute.xmldesign.de> References: <1135797180.30055.17.camel@wintermute.xmldesign.de> Precedence: bulk X-Debian-PR-Message: ack-info 89335 X-Debian-PR-Package: shellutils X-Debian-PR-Keywords: Thank you for the additional information you have supplied regarding this problem report. It has been forwarded to the package maintainer(s) and to other interested parties to accompany the original report. Your message has been sent to the package maintainer(s): Michael Stone If you wish to continue to submit further information on your problem, please send it to 89335@bugs.debian.org, as before. Please do not reply to the address at the top of this message, unless you wish to report a problem with the Bug-tracking system. Debian bug tracking system administrator (administrator, Debian Bugs database)   Received: (at 89335) by bugs.debian.org; 28 Dec 2005 19:13:04 +0000 From erich@debian.org Wed Dec 28 11:13:04 2005 Return-path: Received: from legolas.drinsama.de ([62.91.17.164] ident=postfix) by spohr.debian.org with esmtp (Exim 4.50) id 1ErgjQ-0005R4-3O for 89335@bugs.debian.org; Wed, 28 Dec 2005 11:13:04 -0800 Received: from localhost (localhost [127.0.0.1]) by localhost (Postfix) with ESMTP id 29578C4C084; Wed, 28 Dec 2005 20:13:02 +0100 (CET) Received: from legolas.drinsama.de ([127.0.0.1]) by localhost (legolas [127.0.0.1]) (amavisd-new, port 10024) with SMTP id 21061-06; Wed, 28 Dec 2005 20:13:01 +0100 (CET) Received: from wintermute.xmldesign.de (p549A2C27.dip0.t-ipconnect.de [84.154.44.39]) by legolas.drinsama.de (Postfix) with ESMTP id 0A6B0C4C083; Wed, 28 Dec 2005 20:13:01 +0100 (CET) Received: from wintermute.xmldesign.de (wintermute.xmldesign.de [127.0.0.1]) by wintermute.xmldesign.de (Postfix) with ESMTP id 87D972352B7; Wed, 28 Dec 2005 20:13:00 +0100 (CET) Subject: Re: Bug#89335: Still a wish? From: Erich Schubert To: Thomas Hood , 89335@bugs.debian.org In-Reply-To: <43B2CE49.9030306@yahoo.co.uk> References: <43B2CE49.9030306@yahoo.co.uk> Content-Type: text/plain; charset=ISO-8859-15 Organization: Debian GNU/Linux Developers Date: Wed, 28 Dec 2005 20:12:59 +0100 Message-Id: <1135797180.30055.17.camel@wintermute.xmldesign.de> Mime-Version: 1.0 X-Mailer: Evolution 2.4.1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at mucl.de X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 (1.212-2003-09-23-exp) on spohr.debian.org X-Spam-Level: X-Spam-Status: No, hits=-5.0 required=4.0 tests=BAYES_01,HAS_BUG_NUMBER autolearn=no version=2.60-bugs.debian.org_2005_01_02 Hello Thomas, > > i'd like to have a tool for printing the home directory of a user > Erich: Do you still wish the wish you wished? Well, I currently don't remember where/what I used it for, but after all this is a common task, identifying a users homedir... something I'd like to avoid starting a perl interpreter for. I'm pretty sure, the "homedir.c" program I used in the bug report is still being used on the box I needed it on... IMHO it makes still sense to have such a tool standardized, more than firing up a perl interpreter and such. When avoiding printf() and using write() instead, building it with diet gcc, the static binary is around 2k... ;-) and without diet it's less then 4k. I mean, it's not a huge thing, is it? I am aware that usually you can do things like "echo ~username" to achieve the same result, but how would you e.g. obtain another users home directory in procmail? Does procmail support ~username expansion? I don't really care anymore, though. So go ahead and just close the bug. best regards, Erich Schubert --=20 erich@(vitavonni.de|debian.org) -- GPG Key ID: 4B3A135C (o_ A polar bear is a rectangular bear after a coordinate transform. //\ Mit seiner Zeit gehen wollen, hei=DFt, schon =FCberholt zu sein. = V_/_ --- Eug=E8ne Ionesco   Tags added: wontfix Request was from Thomas Hood <jdthood@yahoo.co.uk> to control@bugs.debian.org.   Received: (at control) by bugs.debian.org; 1 Jan 2006 01:05:09 +0000 From jdthood@yahoo.co.uk Sat Dec 31 17:05:09 2005 Return-path: Received: from smtp-out3.tiscali.nl ([195.241.79.178]) by spohr.debian.org with esmtp (Exim 4.50) id 1Esrem-0003Ew-St for control@bugs.debian.org; Sat, 31 Dec 2005 17:05:09 -0800 Received: from [82.171.132.56] (helo=82-171-132-56.dsl.ip.tiscali.nl) by smtp-out3.tiscali.nl with esmtp (Tiscali http://www.tiscali.nl) id 1Esrem-0008Ce-4m for ; Sun, 01 Jan 2006 02:05:08 +0100 Received: from [127.0.0.1] (localhost [127.0.0.1]) by 82-171-132-56.dsl.ip.tiscali.nl (Postfix) with ESMTP id 42B20BFEFE for ; Sun, 1 Jan 2006 03:05:10 +0100 (CET) Message-ID: <43B738D5.3080803@yahoo.co.uk> Date: Sun, 01 Jan 2006 03:05:09 +0100 From: Thomas Hood User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en MIME-Version: 1.0 To: control@bugs.debian.org Subject: tags, etc. X-Enigmail-Version: 0.92.1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Delivered-To: control@bugs.debian.org X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 (1.212-2003-09-23-exp) on spohr.debian.org X-Spam-Level: X-Spam-Status: No, hits=-5.0 required=4.0 tests=BAYES_00,VALID_BTS_CONTROL autolearn=no version=2.60-bugs.debian.org_2005_01_02 tags 68603 wontfix tags 185152 wontfix tags 17025 wontfix retitle 120650 coreutils: chmod: Please add R, W, S and T options retitle 210475 coreutils: stty: Please add option to force stty to act immediately, not to wait for output to be empty retitle 21750 coreutils: install: Please add option to compress files tags 21750 wontfix tags 48038 upstream retitle 55218 coreutils: ls: Please add option to sort by type (i.e., all directories before all files) tags 56844 wontfix tags 89335 wontfix stop