Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932105AbcC2J6s (ORCPT ); Tue, 29 Mar 2016 05:58:48 -0400 Received: from mout.gmx.net ([212.227.17.22]:61932 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756589AbcC2J6o (ORCPT ); Tue, 29 Mar 2016 05:58:44 -0400 From: Ruediger Meier To: Samuel Thibault Subject: Re: [ANNOUNCE] util-linux v2.28-rc2 Date: Tue, 29 Mar 2016 10:58:30 +0100 User-Agent: KMail/1.9.10 Cc: Karel Zak , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, util-linux@vger.kernel.org References: <20160329091012.x3qea5ga2qzxqkrw@ws.net.home> <20160329094308.GA3019@var.bordeaux.inria.fr> In-Reply-To: <20160329094308.GA3019@var.bordeaux.inria.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <201603291158.32187.sweet_f_a@gmx.de> X-Provags-ID: V03:K0:jr8zDuyhfGCpFpShOalQTM4tqa3gOTJQcaBU+8i9qAOxyT5XuJG QhvP9Zjy+HIAJZU7kTzEY/GOob3+W+3joMi+TMW37Y+BlamnQmWWfUQSpVGnpdfHPoRC7q/ eABQcfi7UrL4sWHkGFtUh/Rva+J3CkI1bXR52fjI9V1ddk81INBU3Arfv30BcBgN6CK4MVh 6XlHJnyYYa2DRTIsfrRpA== X-UI-Out-Filterresults: notjunk:1;V01:K0:DPBVUl0rP4Y=:Uo3zP/9tGo5cBIULyfnaMa v3hKSzb7TQkeXyZZVdSITAKJFJ1PG0daqZSSCMYhAS42eVOE0tdMNQdMbXfO5LyaBzv+6Hxfi gxxUSaSbaJIP81bdAeDfEZlh0qLq0wX9nFyHeKq93mFRYzGhpjaYrIFRGiNYDFClKYokSOvaT IA4TwnlCZ35bhuHf8KQxGP2bLr5zCe3O39RzsjTMZwljNwDkw/H+Kkdu0fpibsvFvfUAmu0YV ox8hFhbKIeA7wmdodqBgS93xu7nDWBmrcTJfKA9Lwdn5wBDAKWe7KkMUJVHRdaSQFPdZXQSa6 Xa3FRhiExDbGF2APUSL7PHL47q+Rkco4poBZd4ZV+bnT44QZTy8ELs9ZzW9/iBf9nAxcS0gUT 4wxpieGPLP3Y7PlY4AnD/2gUjOx8esCqS04p3D8x+O4hwKGpcd58eF00otmXhzalX5jbKy2Zx gZDM0Ox261lJ7ztTbFeIODVVEFdlpOGVPYR7aAYb37a3YTnrhy5335mu6J9CN1xfrEa6m7IyI S4E2dsInBcJR0LQmmrcTcPlMKKovNDsUOq757CdAA1tTrBd3eryQSGBLbjMZ1VT96HOEjBQkP NKepxBpq31frYL93vs/d7SncLLPQw81AlU9VNx03/MRnLL8daMqx9nvgcvmVlPaPLJiIW8DC7 qLFvmNZvkrTrpteTx8SnS7xqWAKJG9HNEa+xrv9MYTEQkNjliYFPBg2BIojlzzG1dMhDaCzX4 EHmQdTBbNWEh/7qkTWl2vcnuz0+ByIwpsa6+tXUuGtNtM3aN8idLzr+J4a4= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1618 Lines: 56 On Tuesday 29 March 2016, Samuel Thibault wrote: > Hello, > > Karel Zak, on Tue 29 Mar 2016 11:10:12 +0200, wrote: > > The util-linux release v2.28-rc2 is available at > > > > http://ftp.kernel.org/pub/linux/utils/util-linux/v2.28 > > > > Feedback and bug reports, as always, are welcomed. > > The Hurd provides a BSD-compatible interface (thus defines BSD to > something 1993-ish), but not compatible with more recent BSDs. > setprogname appeared around 2004 and such. The patch below just > detects the availability. > > Samuel > > > diff --git a/configure.ac b/configure.ac > index 1519c97..9502d84 100644 > --- a/configure.ac > +++ b/configure.ac > @@ -380,6 +380,7 @@ AC_CHECK_FUNCS([ \ > qsort_r \ > rpmatch \ > scandirat \ > + setprogname \ > setresgid \ > setresuid \ > sched_setattr \ > diff --git a/misc-utils/getopt.c b/misc-utils/getopt.c > index c4144f6..1efae07 100644 > --- a/misc-utils/getopt.c > +++ b/misc-utils/getopt.c > @@ -453,7 +453,7 @@ int main(int argc, char *argv[]) > > if (name) { > argv[optind - 1] = name; > -#if defined (BSD) || defined (__APPLE__) > +#if (defined (BSD) || defined (__APPLE__)) && defined (HAVE_SETPROGNAME) Then I would simply use only #if defined (HAVE_SETPROGNAME) or, to be 105% sure to avoid any side effects on our "normal" Linux target #if defined (HAVE_SETPROGNAME) && ! defined __linux__ > setprogname(name); > #endif > } else > -- > To unsubscribe from this list: send the line "unsubscribe util-linux" > in the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html