Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 207564
b: refs/heads/master
c: f8d7e18
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro committed Aug 9, 2010
1 parent 38d189f commit 1b8d9a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: e9193059b1b3733695d5b80e667778311695aa73
refs/heads/master: f8d7e1877e5121841bc9a4d284a04dbc13f45bea
5 changes: 3 additions & 2 deletions trunk/fs/hostfs/hostfs_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -622,11 +622,12 @@ int hostfs_unlink(struct inode *ino, struct dentry *dentry)
char *file;
int err;

if ((file = dentry_name(dentry)) == NULL)
return -ENOMEM;
if (append)
return -EPERM;

if ((file = dentry_name(dentry)) == NULL)
return -ENOMEM;

err = unlink_file(file);
__putname(file);
return err;
Expand Down

0 comments on commit 1b8d9a9

Please sign in to comment.