[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] an example of broken lib



Hi Michael!

> > A propos library binding: What if Ffchown() and Ffchmod() is not supported
> > by the kernel?  I would suggest to always return 0 for success in the
> > library.  For older MiNT versions this is somewhat problematic but it will
> 
> The kernel (or whoever decides, maybe the FS) should produce an
> unimplemented function error code, so that the lib *knows* that it failed.
> Ignoring error codes for programs that do check them is not good idea IMHO,
> and might cause other security problems.
> 
> Could the kernel emulate the functionality (in a not race-clean way) when
> the FS does not support it?

What do you mean? For Ffchown() and Ffchmod() there is no additional xfs
support neccessary. The existing xfs definition is capable to handle this.


Tschuess
   ...Frank

--
ATARI FALCON 040 // MILAN 040
--------------------------------------
Internet: fnaumann@cs.uni-magdeburg.de
Mausnet:  Frank Naumann @ L2