From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on sa.local.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 From: Sergey Afonin To: ALT Linux Team development discussions Date: Mon, 12 Apr 2021 10:59:25 +0400 User-Agent: KMail/1.9.10 (enterprise35 0.20100827.1168748) References: <202103291229.38338.asy@altlinux.org> <20210330100722.GA27387@altlinux.org> In-Reply-To: <20210330100722.GA27387@altlinux.org> X-KMail-QuotePrefix: > MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 8bit Content-Disposition: inline Message-Id: <202104121059.25933.asy@altlinux.org> Subject: Re: [devel] OpenVZ/p8, bin/tar: Too many levels of symbolic links X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux Team development discussions List-Id: ALT Linux Team development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Apr 2021 06:59:34 -0000 Archived-At: List-Archive: List-Post: On Tuesday 30 March 2021, Dmitry V. Levin wrote: > Интересно, на каком системном вызове это происходит, и как он выглядит? Как раз подвернулся архив, на котором при распаковке вылезло: В strace это выглядит как-то так: newfstatat(AT_FDCWD, "inn/.git/hooks/pre-rebase.sample", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 unlinkat(AT_FDCWD, "inn/.git/hooks/pre-rebase.sample", 0) = 0 symlinkat("/usr/share/git-core/hooks/pre-rebase", AT_FDCWD, "inn/.git/hooks/pre-rebase.sample") = 0 utimensat(AT_FDCWD, "inn/.git/hooks/pre-rebase.sample", [UTIME_OMIT, {tv_sec=1618208993, tv_nsec=0} /* 2021-04-12T06:29:53+0000 */], AT_SYMLINK_NOFOLLOW) = 0 newfstatat(AT_FDCWD, "inn/.git/hooks/pre-rebase.sample", {st_mode=S_IFLNK|0777, st_size=36, ...}, AT_SYMLINK_NOFOLLOW) = 0 openat(AT_FDCWD, "inn/.git/hooks/pre-rebase.sample", O_RDONLY|O_NOFOLLOW|O_CLOEXEC|O_PATH) = -1 ELOOP (Too many levels of symbolic links) write(2, "tar: ", 5tar: ) = 5 write(2, "inn/.git/hooks/pre-rebase.sample"..., 65inn/.git/hooks/pre-rebase.sample: Cannot change mode to rwxr-xr-x) = 65 write(2, ": Too many levels of symbolic li"..., 35: Too many levels of symbolic links) = 35 write(2, "\n", 1 ) = 1 -- С уважением, Сергей Афонин.