From: Sergey Afonin <asy@altlinux.org> To: ALT Linux Team development discussions <devel@lists.altlinux.org> Subject: [devel] symlinks in .git/hooks/ (OpenVZ/p8, bin/tar: Too many levels of symbolic links) Date: Tue, 1 Jun 2021 09:53:28 +0400 Message-ID: <202106010953.28604.asy@altlinux.org> (raw) In-Reply-To: <851a0bc8-7ab8-43bc-fde5-574f40ebc8fe@basealt.ru> On Monday 12 April 2021, Alexey Sheplyakov wrote: > Сделали симлинк inn/.git/hooks/pre-rebase.sample (на /usr/share/git-core/hooks/pre-rebase). > И тут же пытаемся открыть с флагом O_NOFOLLOW. Так всё же, кто и когда сделал такие симлинки? Какая-то ошибка в git была? Потому как руками я это точно не делал: unlinkat(AT_FDCWD, "cyrus-imapd/.git/hooks/prepare-commit-msg.sample", 0) = 0 symlinkat("/usr/share/git-core/hooks/prepare-commit-msg", AT_FDCWD, "cyrus-imapd/.git/hooks/prepare-commit-msg.sample") = 0 utimensat(AT_FDCWD, "cyrus-imapd/.git/hooks/prepare-commit-msg.sample", [UTIME_OMIT, {tv_sec=1568140747, tv_nsec=0} /* 2019-09-10T18:39:07+0000 */], AT_SYMLINK_NOFOLLOW) = 0 newfstatat(AT_FDCWD, "cyrus-imapd/.git/hooks/prepare-commit-msg.sample", {st_mode=S_IFLNK|0777, st_size=44, ...}, AT_SYMLINK_NOFOLLOW) = 0 openat(AT_FDCWD, "cyrus-imapd/.git/hooks/prepare-commit-msg.sample", O_RDONLY|O_NOFOLLOW|O_CLOEXEC|O_PATH) = -1 ELOOP (Too many levels of symbolic links) И как теперь методически правильно починить .git/hooks/*, которые, вообще-то, все симлинки в некоторых репозиториях? Что тоже, кстати, странно, так как в некоторых случаях не симлинки. > Работает, как задокументировано. И почему раньше работало? -- С уважением, Сергей Афонин.
next prev parent reply other threads:[~2021-06-01 5:53 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-03-29 8:29 [devel] Сборка и OpenVZ/p8 =?utf-8?b?INC60L7QvdGC0LXQudC90LXRgA==?=, bin/tar: Too many levels of symbolic links Sergey Afonin 2021-03-30 9:43 ` Vitaly Lipatov 2021-03-30 10:07 ` Dmitry V. Levin 2021-04-12 6:59 ` [devel] OpenVZ/p8, " Sergey Afonin 2021-04-12 7:48 ` Alexey Sheplyakov 2021-04-12 9:31 ` Sergey Afonin 2021-04-12 9:41 ` Sergey Afonin 2021-06-01 5:53 ` Sergey Afonin [this message] 2021-06-01 6:00 ` [devel] symlinks in .git/hooks/ (OpenVZ/p8, bin/tar: Too many levels of symbolic links) Sergey Afonin 2022-12-08 11:48 ` [devel] Сборка и OpenVZ/p8, bin/tar: Too many levels of symbolic links Sergey Y. Afonin 2021-04-12 10:48 ` [devel] OpenVZ/p8 и контейнеры Sergey Afonin 2021-04-12 11:22 ` Sergey Afonin
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=202106010953.28604.asy@altlinux.org \ --to=asy@altlinux.org \ --cc=devel@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Team development discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \ devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru public-inbox-index devel Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.devel AGPL code for this site: git clone https://public-inbox.org/public-inbox.git