* flock.cc (lockf_t::from_obj_name): Fix test for valid pid.
This commit is contained in:
parent
94f900f805
commit
8451a289cc
|
@ -1,3 +1,7 @@
|
|||
2013-08-23 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* flock.cc (lockf_t::from_obj_name): Fix test for valid pid.
|
||||
|
||||
2013-08-23 Christopher Faylor <me.cygwin2013@cgf.cx>
|
||||
|
||||
* spawn.cc (child_info_spawn): Revert previous change. Always set
|
||||
|
|
|
@ -564,7 +564,7 @@ lockf_t::from_obj_name (inode_t *node, lockf_t **head, const wchar_t *name)
|
|||
return false;
|
||||
lf_id = wcstoll (endptr + 1, &endptr, 16);
|
||||
if (!endptr || *endptr != L'-'
|
||||
|| ((lf_flags & F_POSIX) && (lf_id < 1 || lf_id > ULONG_MAX)))
|
||||
|| ((lf_flags & F_POSIX) && (lf_id < 1 || lf_id > UINT32_MAX)))
|
||||
return false;
|
||||
lf_wid = wcstoul (endptr + 1, &endptr, 16);
|
||||
if (!endptr || *endptr != L'-')
|
||||
|
|
Loading…
Reference in New Issue