# | 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) { |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |