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

Comparing BasiliskII/src/Unix/extfs_unix.cpp (file contents):
Revision 1.6 by cebix, 1999-11-01T16:24:15Z vs.
Revision 1.7 by cebix, 1999-11-08T16:43:11Z

# Line 123 | Line 123 | static int open_helper(const char *path,
123          char helper_path[MAX_PATH_LENGTH];
124          make_helper_path(path, helper_path, add);
125  
126 <        if ((flag & O_RDWR) || (flag && O_WRONLY))
126 >        if ((flag & O_ACCMODE) == O_RDWR || (flag & O_ACCMODE) == O_WRONLY)
127                  flag |= O_CREAT;
128          int fd = open(helper_path, flag, 0666);
129          if (fd < 0) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines