ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/AmigaOS/extfs_amiga.cpp
(Generate patch)

Comparing BasiliskII/src/AmigaOS/extfs_amiga.cpp (file contents):
Revision 1.1 by cebix, 1999-11-01T16:24:09Z vs.
Revision 1.2 by cebix, 1999-11-08T16:43:10Z

# Line 118 | Line 118 | static int open_helper(const char *path,
118          char helper_path[MAX_PATH_LENGTH];
119          make_helper_path(path, helper_path, add);
120  
121 <        if ((flag & O_RDWR) || (flag && O_WRONLY))
121 >        if ((flag & O_ACCMODE) == O_RDWR || (flag & O_ACCMODE) == O_WRONLY)
122                  flag |= O_CREAT;
123          int fd = open(helper_path, flag, 0666);
124          if (fd < 0) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines