Quantcast
Channel: User Kamil Maciorowski - Super User
Viewing all articles
Browse latest Browse all 656

Comment by Kamil Maciorowski on Are xarg + cp vulnerabler to race conditions?

$
0
0
TOCTOU. Probably two cps in about the same time see the directory does not exist and they both decide it needs to be created. One does create it, the other tries, fails and prints the message in question. Had it checked slightly later, it would know it does not need to create the directory. Does the error prevent the unlucky cp from actually copying the files?

Viewing all articles
Browse latest Browse all 656

Trending Articles