file locking problems?

Randolph Chung tausq@debian.org
Sun, 8 Oct 2000 22:53:24 -0700


> update-passwd (a Debian package) makes a call to lckpwdf. That fails
> with an "Invalid argument" message. It looks like lckpwdf internally uses
> fcntl() locking, so I tried that and it too fails with an "Invalid
> argument" message.  This happens both on nfs and local ext2 fs.
> Similar tests with flock() seems to work ok.

as it turns out, it looks like there's a glibc<->kernel mismatch. 
the kernel defines F_RDLCK as 1, and glibc has it defined as 0. dhd is
aware of this and say he'll look into fixing this later this week.

randolph
-- 
Debian Developer <tausq@debian.org>
http://www.TauSq.org/