From patchwork Sun Jan 28 18:15:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 866885 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-89742-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="OI5OLX/C"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zV16h2QkVz9t2x for ; Mon, 29 Jan 2018 05:16:12 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id; q=dns; s= default; b=pld5GfzCiVCEti2Bpo1dTYCOliURVGBUQOt92C4Yv16/fe+OtrBVy 94/+/z6n20XGDu/0E/vCXaQza6ACbrqQg9oHH6uJ0ezVljdCHXzlSGIJpaEaT8iS s/HJcWi7AKQaJpAO/oAy1p+n5F8DnnpwC+8zJB13ZGiNvxczRujHG4= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id; s=default; bh=CDcBAyHLkaINFkFBb2WNK8k68Ao=; b=OI5OLX/CuCjV8nd3zKaZNFE74/zw qe6rD8sEmz2RGUKAoQHlYnARx1j5j7n85p7V+6zi4vOaLXrV0c+vvcaWmBkpQFQK WTlZr9/7PXUxlyGT8icst1XGP+UiLZdydmX3TIso6gvytrZSKLFskS8LqTkwdHiM Ii9XI5KbvQm1hNk= Received: (qmail 82253 invoked by alias); 28 Jan 2018 18:15:58 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 82156 invoked by uid 89); 28 Jan 2018 18:15:48 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.0 required=5.0 tests=TIME_LIMIT_EXCEEDED autolearn=unavailable version=3.3.2 spammy= X-HELO: hera.aquilenet.fr From: Samuel Thibault To: libc-alpha@sourceware.org Cc: Samuel Thibault Subject: [hurd,commited] hurd: Fix posix options Date: Sun, 28 Jan 2018 19:15:29 +0100 Message-Id: <20180128181529.945-1-samuel.thibault@ens-lyon.org> _POSIX_CHOWN_RESTRICTED and _POSIX_NO_TRUNC should be always defined. * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC): Define to 0. --- ChangeLog | 2 ++ sysdeps/mach/hurd/bits/posix_opt.h | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 96e4549146..3223ff58ea 100644 --- a/ChangeLog +++ b/ChangeLog @@ -90,6 +90,8 @@ _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set, __hurd_threadvar_location_from_sp, __hurd_threadvar_location, _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear. + * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED, + _POSIX_NO_TRUNC): Define to 0. 2008-12-18 Thomas Schwinge diff --git a/sysdeps/mach/hurd/bits/posix_opt.h b/sysdeps/mach/hurd/bits/posix_opt.h index f299e3f7b9..03082adaa6 100644 --- a/sysdeps/mach/hurd/bits/posix_opt.h +++ b/sysdeps/mach/hurd/bits/posix_opt.h @@ -58,8 +58,8 @@ /* Different Hurd filesystems might do these differently. You must query the particular file with `pathconf' or `fpathconf'. */ -#undef _POSIX_CHOWN_RESTRICTED /* Only root can change owner of file? */ -#undef _POSIX_NO_TRUNC /* Overlong file names get error? */ +#define _POSIX_CHOWN_RESTRICTED 0 /* Only root can change owner of file? */ +#define _POSIX_NO_TRUNC 0 /* Overlong file names get error? */ #undef _POSIX_SYNC_IO /* File supports O_SYNC et al? */ /* X/Open realtime support is not supported. */