[EMAIL PROTECTED] wrote: >>Gary Gendel <[EMAIL PROTECTED]> wrote: >> >> >>>Is there a Solaris equivalent to the lchmod library function found on Linux? >>> The chmod changes > > the protection of the file the symbolic link is pointing to whereas lchmod > changes the protection o > f the link itself. I couldn't find a direct replacement. > >>>Of course I could roll my own, but I was wondering if I just missed it. Then >>>again, is there som > > e precept on Solaris that symbolic links should always have 0777 protection > attributes? > >>Solaris AFAIK ignores the mode of symlinks. >> >>What do you like to achieve with this call? > > > There's one potential use: a chmod() call which doesn't follow > symlinks. No race conditions, etc... > > Casper
Casper, Exactly. However, I do suspect that Joerg has a point. As I was writing this I was trying to figure out why the original code I was working with needed this distinction. Instead, it make more sense just to ignore the chmod() requested for symbolic links... Especially if Joerg is right and Solaris ignores the protection settings anyway. Gary _______________________________________________ opensolaris-discuss mailing list [email protected]
