{"action":"created","issue":{"url":"https://api.github.com/repos/syncthing/syncthing/issues/1276","labels_url":"https://api.github.com/repos/syncthing/syncthing/issues/1276/labels{/name}","comments_url":"https://api.github.com/repos/syncthing/syncthing/issues/1276/comments","events_url":"https://api.github.com/repos/syncthing/syncthing/issues/1276/events","html_url":"https://github.com/syncthing/syncthing/issues/1276","id":54824261,"number":1276,"title":"Symlinks are handled wrong","user":{"login":"rkfg","id":184066,"avatar_url":"https://avatars.githubusercontent.com/u/184066?v=3","gravatar_id":"","url":"https://api.github.com/users/rkfg","html_url":"https://github.com/rkfg","followers_url":"https://api.github.com/users/rkfg/followers","following_url":"https://api.github.com/users/rkfg/following{/other_user}","gists_url":"https://api.github.com/users/rkfg/gists{/gist_id}","starred_url":"https://api.github.com/users/rkfg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkfg/subscriptions","organizations_url":"https://api.github.com/users/rkfg/orgs","repos_url":"https://api.github.com/users/rkfg/repos","events_url":"https://api.github.com/users/rkfg/events{/privacy}","received_events_url":"https://api.github.com/users/rkfg/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/syncthing/syncthing/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":22,"created_at":"2015-01-19T23:15:55Z","updated_at":"2015-01-20T12:33:23Z","closed_at":null,"body":"If you have a symlink (on Linux at least) in the directory that's being synced, the symlink target after some time will have the date Jan, 1 1970 (i.e. unix timestamp is zero) and chmodded to 666. I can't tell exactly when this happens because the timestamp is erased but one day my script in ~/bin is executable and another day it's chmodded to 666 and I can't execute it. I figured out it's because of symlinks (two symlinks in the same ~/bin dir point to the script, it distinguishes the command by $0 argument like busybox does) because another link that points to the file outside of the syncing directory got the same timestamp and access rights. So Syncthing follows the link somehow wrong I guess. I changed the mod and touched the file on both sides and it was ok for some time (i.e. several rescans) so I though it was just a temporary error but then it happened again. I don't see a pattern but if someone also observe the same behavior please comment."},"comment":{"url":"https://api.github.com/repos/syncthing/syncthing/issues/comments/70646801","html_url":"https://github.com/syncthing/syncthing/issues/1276#issuecomment-70646801","issue_url":"https://api.github.com/repos/syncthing/syncthing/issues/1276","id":70646801,"user":{"login":"rkfg","id":184066,"avatar_url":"https://avatars.githubusercontent.com/u/184066?v=3","gravatar_id":"","url":"https://api.github.com/users/rkfg","html_url":"https://github.com/rkfg","followers_url":"https://api.github.com/users/rkfg/followers","following_url":"https://api.github.com/users/rkfg/following{/other_user}","gists_url":"https://api.github.com/users/rkfg/gists{/gist_id}","starred_url":"https://api.github.com/users/rkfg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkfg/subscriptions","organizations_url":"https://api.github.com/users/rkfg/orgs","repos_url":"https://api.github.com/users/rkfg/repos","events_url":"https://api.github.com/users/rkfg/events{/privacy}","received_events_url":"https://api.github.com/users/rkfg/received_events","type":"User","site_admin":false},"created_at":"2015-01-20T12:33:23Z","updated_at":"2015-01-20T12:33:23Z","body":"And the mpdel mystery was probably resolved as well. I forgot that I have another node, a VPS server, that also syncs the \"ownCloud\" repo, it had the same issue (a file with zero mtime/default flags instead of a symlink) so it was actually replicated from that server though I fixed the symlink on my two desktop nodes and thought it was a database error. After fixing it there I don't have the issue.\r\n\r\nThat VPS \"maintains itself\" and autoupdates just fine (it has 0.10.20 for the record) so I forgot about it. It demonstrates that the code quality is quite great."}}