args to fchmod() and chmod()

2003-01-20 Thread Terrence Enger
Greetings, all. I notice that cvs in several places executes fchmod() or chmod(), and that in some cases the new mode argument is the mode returned from an earlier call to stat(). This value typically includes the file type. On most platforms this causes no problem, but OS/400 complains that

Re: args to fchmod() and chmod()

2003-01-20 Thread Larry Jones
Terrence Enger writes: I notice that cvs in several places executes fchmod() or chmod(), and that in some cases the new mode argument is the mode returned from an earlier call to stat(). This value typically includes the file type. On most platforms this causes no problem, but OS/400

Re: args to fchmod() and chmod()

2003-01-20 Thread Terrence Enger
At 11:10 2003-01-20 -0500, you wrote: Terrence Enger writes: [snip] Are you certain that it's the file type bits that are causing the problem? If so, I'd say that OS/400 is definitely *incorrect*. The When I tried fchmod() with each single bit set in the new mode, OS/400 returned an error for