diff options
author | Sebastian Hahn <sebastian@torproject.org> | 2011-02-11 16:57:53 +0100 |
---|---|---|
committer | Sebastian Hahn <sebastian@torproject.org> | 2011-02-11 17:02:26 +0100 |
commit | 5dbaf9dbd545d7c9ecc18224883a74a9dc60ecf4 (patch) | |
tree | e09c2cc2ef5809b8f8accb0cf58273432e8ceb94 /src/common/compat.c | |
parent | 9b745cdbf9cd7384e44e18bf40a3d2c9becbc345 (diff) | |
download | tor-5dbaf9dbd545d7c9ecc18224883a74a9dc60ecf4.tar.gz tor-5dbaf9dbd545d7c9ecc18224883a74a9dc60ecf4.zip |
Windows has EACCES, not EACCESS
Once again spotted by mobmix
Also add a changes file for the fix
Diffstat (limited to 'src/common/compat.c')
-rw-r--r-- | src/common/compat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/compat.c b/src/common/compat.c index 5dfde3dc03..d29cacf372 100644 --- a/src/common/compat.c +++ b/src/common/compat.c @@ -699,7 +699,7 @@ tor_lockfile_lock(const char *filename, int blocking, int *locked_out) #ifdef WIN32 _lseek(fd, 0, SEEK_SET); if (_locking(fd, blocking ? _LK_LOCK : _LK_NBLCK, 1) < 0) { - if (errno != EACCESS && errno != EDEADLOCK) + if (errno != EACCES && errno != EDEADLOCK) log_warn(LD_FS,"Couldn't lock \"%s\": %s", filename, strerror(errno)); else *locked_out = 1; |