Re: [PATCH] fully resolve symlinks when creating lockfiles
- From
- Morten Welinder <mwelinder@gmail.com>
- Date
- Jul 26, 2007, 19:34 UTC
- Message-ID
- <118833cc0707261234u59e30bchc274ae29569d8500@mail.gmail.com>
- In-Reply-To
- <11854712542350-git-send-email-bradford.carl.smith@gmail.com>
Why the lstat and that stat in the beginning? That's just asking for race condition. readlink will tell you if it wasn't a link, for example.
Morten