Author Pavel Raiskup
Recipients Pavel Raiskup, r.david.murray, theger
Date 2020-09-15.06:23:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1600151033.4.0.100510256288.issue34374@roundup.psfhosted.org>
In-reply-to
Content
Check out this default behavior of /bin/cp though:

    $ mkdir a b
    $ echo content > a/file
    $ ln -s non-existing b/file
    $ cp a/file b
    cp: not writing through dangling symlink 'b/file'

Shouldn't shutil.copy*() refuse to write trough a dangling symlink to non-existent
file?  (ATM it seems it just silently creates the file, or fails if it can not be
created).
History
Date User Action Args
2020-09-15 06:23:53Pavel Raiskupsetrecipients: + Pavel Raiskup, r.david.murray, theger
2020-09-15 06:23:53Pavel Raiskupsetmessageid: <1600151033.4.0.100510256288.issue34374@roundup.psfhosted.org>
2020-09-15 06:23:53Pavel Raiskuplinkissue34374 messages
2020-09-15 06:23:53Pavel Raiskupcreate