Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756442AbcC2JnP (ORCPT ); Tue, 29 Mar 2016 05:43:15 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:34180 "EHLO mail2-relais-roc.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751587AbcC2JnN (ORCPT ); Tue, 29 Mar 2016 05:43:13 -0400 X-IronPort-AV: E=Sophos;i="5.24,410,1454972400"; d="scan'208";a="210833371" Date: Tue, 29 Mar 2016 11:43:08 +0200 From: Samuel Thibault To: Karel Zak Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, util-linux@vger.kernel.org Subject: Re: [ANNOUNCE] util-linux v2.28-rc2 Message-ID: <20160329094308.GA3019@var.bordeaux.inria.fr> Mail-Followup-To: Samuel Thibault , Karel Zak , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, util-linux@vger.kernel.org References: <20160329091012.x3qea5ga2qzxqkrw@ws.net.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160329091012.x3qea5ga2qzxqkrw@ws.net.home> User-Agent: Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1103 Lines: 42 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) setprogname(name); #endif } else