When file 1.lnk is a symbolic link: > lrwxr-xr-x 1 yuri users 1 Sep 10 15:49 1.lnk -> 1 gedit fails to save it after editing: > Unexpected error: Error opening file '/home/yuri/test/1.lnk': Too many links Same happens in meld. > $ pkg which /usr/local/lib/libgio-2.0.so.0 > /usr/local/lib/libgio-2.0.so.0 was installed by package glib-2.46.2 10.3 amd64
I reported this bug to upstream and attached a patch in that bug report: https://bugzilla.gnome.org/show_bug.cgi?id=775593
Upstream bug report: https://bugzilla.gnome.org/show_bug.cgi?id=777352
same on 11
After pinging the maintainer, I got my patch committed to upstream repository: https://git.gnome.org/browse/glib/commit/?id=45d4b59
Created attachment 183381 [details] glocalfileoutputstream: Fix symlink writing on FreeBSD and NetBSD
A commit references this bug: Author: jbeich Date: Sat Jul 1 05:19:22 UTC 2017 New revision: 444811 URL: https://svnweb.freebsd.org/changeset/ports/444811 Log: devel/glib20: fix symlink writing $ gio save testfile < /etc/shells $ ln -s testfile testlink $ gio save testlink < /etc/shells gio: file:///path/to/testlink: Error opening file '/path/to/testlink': Too many links PR: 212572 Reported by: Yuri Victorovich Submitted by: Ting-Wei Lan Approved by: maintainer timeout (3 weeks) MFH: 2017Q2 Changes: head/devel/glib20/Makefile head/devel/glib20/files/patch-gio_glocalfileoutputstream.c
A commit references this bug: Author: jbeich Date: Sun Jul 2 03:17:15 UTC 2017 New revision: 444863 URL: https://svnweb.freebsd.org/changeset/ports/444863 Log: MFH: r444811 devel/glib20: fix symlink writing $ gio save testfile < /etc/shells $ ln -s testfile testlink $ gio save testlink < /etc/shells gio: file:///path/to/testlink: Error opening file '/path/to/testlink': Too many links PR: 212572 Reported by: Yuri Victorovich Submitted by: Ting-Wei Lan Approved by: maintainer timeout (3 weeks) Approved by: ports-secteam (feld) Changes: _U branches/2017Q2/ branches/2017Q2/devel/glib20/Makefile branches/2017Q2/devel/glib20/files/patch-gio_glocalfileoutputstream.c