Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
spew against a symlink will atomically replace symlink, not target file #32
Because spew works by spewing to a temp file and then does atomic rename to the target, an existing symlink will be replaced with a file.
If a spew target exists and is a link, we probably need to follow the link and atomically replace the destination instead.