Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 281453
b: refs/heads/master
c: fef2e9f
h: refs/heads/master
i:
  281451: f57523a
v: v3
  • Loading branch information
Jan Kara committed Jan 9, 2012
1 parent d19e2df commit 6ecb6b5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 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: d2eb8c359309ec45d6bf5b147303ab8e13be86ea
refs/heads/master: fef2e9f3301934773e4f1b3cc5c7bffb119346b8
14 changes: 10 additions & 4 deletions trunk/fs/udf/symlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,16 @@ static void udf_pc_to_char(struct super_block *sb, unsigned char *from,
pc = (struct pathComponent *)(from + elen);
switch (pc->componentType) {
case 1:
if (pc->lengthComponentIdent == 0) {
p = to;
*p++ = '/';
}
/*
* Symlink points to some place which should be agreed
* upon between originator and receiver of the media. Ignore.
*/
if (pc->lengthComponentIdent > 0)
break;
/* Fall through */
case 2:
p = to;
*p++ = '/';
break;
case 3:
memcpy(p, "../", 3);
Expand Down

0 comments on commit 6ecb6b5

Please sign in to comment.