Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 217508
b: refs/heads/master
c: c5c6dd4
h: refs/heads/master
v: v3
  • Loading branch information
Richard Weinberger authored and Linus Torvalds committed Oct 26, 2010
1 parent 4b28012 commit e71a0f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: be76d81f99c4c120adcd201a7316e4dd7dbe3c11
refs/heads/master: c5c6dd4e2dce3cb4d705d97183bc42b4e33e2606
5 changes: 2 additions & 3 deletions trunk/fs/hostfs/hostfs_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@ void *open_dir(char *path, int *err_out)

dir = opendir(path);
*err_out = errno;
if (dir == NULL)
return NULL;

return dir;
}

Expand Down Expand Up @@ -205,7 +204,7 @@ int set_attr(const char *file, struct hostfs_iattr *attrs, int fd)
if (attrs->ia_valid & HOSTFS_ATTR_MODE) {
if (fd >= 0) {
if (fchmod(fd, attrs->ia_mode) != 0)
return (-errno);
return -errno;
} else if (chmod(file, attrs->ia_mode) != 0) {
return -errno;
}
Expand Down

0 comments on commit e71a0f3

Please sign in to comment.