in reply to Re: open vs. sysopen
in thread open vs. sysopen

Changing to O_RDWR doesn't help.
OS: Slackware 9.1 Linux 2.4.23
fs: /dev/hdd3 / ext2 rw 0 0
POSIX::open() works fine
Thanks!
-sheep

Replies are listed 'Best First'.
Re: O_RDWR, POSIX, OS, fs...
by Anonymous Monk on Dec 26, 2003 at 19:20 UTC

    Perhaps you can supply some additional code, or a small test case that exhibits the behavior. The following two lines of code behave properly on my Slackware Linux box (2.4.18), assuming proper permissions on directories involved in the filepath.

    open(DEST,'>',$ggg) or die $!; sysopen(DEST, $ggg, O_WRONLY | O_TRUNC | O_CREAT) or die $!;