From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/11673 Path: news.gmane.org!.POSTED!not-for-mail From: Adam Hill Newsgroups: gmane.linux.lib.musl.general Subject: Possible issue around utime() and symlinks on at least MIPS64 Date: Thu, 06 Jul 2017 14:50:16 +0100 Message-ID: <1628901.R1SNWt7Sda@zaphod> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="nextPart2060131.tInqyxO4i5" Content-Transfer-Encoding: 7Bit X-Trace: blaine.gmane.org 1499349045 23303 195.159.176.226 (6 Jul 2017 13:50:45 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 6 Jul 2017 13:50:45 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-11686-gllmg-musl=m.gmane.org@lists.openwall.com Thu Jul 06 15:50:39 2017 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1dT7Ar-0005Jh-E2 for gllmg-musl@m.gmane.org; Thu, 06 Jul 2017 15:50:29 +0200 Original-Received: (qmail 3749 invoked by uid 550); 6 Jul 2017 13:50:31 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 3692 invoked from network); 6 Jul 2017 13:50:29 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=+y4CVX2Vg0FmKF/Fe9Z0CA6wQIefb6LrL6LD6DfJYDY=; b=HitqtP+l6k60HJVQwCst8X0ew8zPEJrk/HuWN/8B30ZQ/ehZoQtzbPRJDwQN6raLhp d1LpHQfVGHK8afxfdaIhY2T95bdOYrNrZxc8IZiJVwj9SAVbbuwUHT5+s4px6sJt1Trr WGuMp8fBKO63pUGNLTDWpDAzW1AGg6bZ+Sop63Lk96RxrZQU6KtnZZrt8OPepU25Kv55 7QQmUj7vQ3RQrFgp4VS6PeVicNNdV7wpwS+HYpejyXqgyQJV6ECEysArntGLGdIIO6ij oMLiOEE7EsfGz9KcCyg03N6Bnz3CUOA7+B/j4yyX/YN89+kZvPHBOg6VuruMNp+jaX7e GbJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=+y4CVX2Vg0FmKF/Fe9Z0CA6wQIefb6LrL6LD6DfJYDY=; b=dhhGA5C4VdTib4DWR71HozW37XRlUbNZ2amI/A/UWxhL6vvqWbF6YsIq65v5GtCBvs n8Ijz2KBpac776EWFqKVtm/EN4M3diDS1HpThtoBaoGcYe2bbS0hhqt7aMmZ/WXFUtfU uj/iwWHOKkYH9vF1D2Mq9QZNoB/A6dFX0yceSwR7seswimvu7dU8cpLD1g/e48kGQkMX Vcb/dkt526HxR2K0Yw7Z6+0AOPSH4aR+JAMOkO7Ji3jEcBZP3c62Go728J91kdS9+cQV fzV1hH1E6pnc3/cRTJr4uG1SN+n70ihVNi+WowLRPVYgF3mqLJwMdPNIawRTRObEkpdQ 9NKg== X-Gm-Message-State: AIVw113id1HcjvbZr+UlP4wlPlpDLChtRH49/jaHAtqvdlneCkF357O0 ZPoyc5unSLMILKRgXDM= X-Received: by 10.28.210.69 with SMTP id j66mr13190430wmg.82.1499349018060; Thu, 06 Jul 2017 06:50:18 -0700 (PDT) Xref: news.gmane.org gmane.linux.lib.musl.general:11673 Archived-At: This is a multi-part message in MIME format. --nextPart2060131.tInqyxO4i5 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Hi, Not carried out ANY investigation around this... unfortunately I don't have any time atm. Could also have been mentioned already or actually be a bug in tar itself etc. but I couldn't find anything with my quick search. Just thought I'd mention it in case anyone does feel inclined to investigate. I compiled OpenWrt using pretty much default build settings for an octeon chip... it uses musl-1.1.16. The only real change I made was to use GNU tar rather than busybox. The resulting tar binary can't fix the modification/access times on any extracted symbolic links, resulting in for example: tar: usr/share/zoneinfo/Africa: Cannot utime: Invalid argument I didn't have strace available so can't even be sure tar's using utime()... just going by the error message alone. I recompiled OpenWrt changing only the C library ( to GCC ) and the resulting tar binary worked fine... so I can only *assume* it's something to do with musl. --nextPart2060131.tInqyxO4i5 Content-Transfer-Encoding: 7Bit Content-Type: text/html; charset="us-ascii"

Hi,

 

Not carried out ANY investigation around this... unfortunately I don't have any time atm. Could also have been mentioned already or actually be a bug in tar itself etc. but I couldn't find anything with my quick search. Just thought I'd mention it in case anyone does feel inclined to investigate.

 

I compiled OpenWrt using pretty much default build settings for an octeon chip... it uses musl-1.1.16. The only real change I made was to use GNU tar rather than busybox. The resulting tar binary can't fix the modification/access times on any extracted symbolic links, resulting in for example:

 

tar: usr/share/zoneinfo/Africa: Cannot utime: Invalid argument

I didn't have strace available so can't even be sure tar's using utime()... just going by the error message alone.

 

I recompiled OpenWrt changing only the C library ( to GCC ) and the resulting tar binary worked fine... so I can only *assume* it's something to do with musl.

--nextPart2060131.tInqyxO4i5--