Carsten Pfeiffer wrote: > > On Wed, May 24, 2000 at 12:22:31AM +0200, Michael Matz wrote: > > Hi, > > > You can't have +x in any umask. It is used to filter _out_ bits of the > > filemode (resulting mode=(requested mode & ~umask)). So you can only > > delete bits which were requested, but you can't add bits. > > ok, so umask = 000 would make +x possible. I just tested it, open(2)ing > and closing a file, without setting any permission. It gets the funny > permission --wSrw---x. > Yes, because you have to pass permissions otherwise you get just the random data on the stack when you call :) Remember this is C and not C++ Greetings, Stephan -- Programmers, heed this: If someone starts asking you about agricultural genomes, it's likely time to get a handler. zdnet.com about Torvalds