A quick fix is to disallow subdirectories. Just comment out this block in function os_newtypedfile
/* Clean out bad characters, create directories along path */ for (p=fname; *p; p++) { /*if (*p == '/') { if (!strncmp(p, "/../", 4)) { p[1] = p[2] = 'X'; } *p = '\0'; (void) mkdir(fname, 0777); *p = '/'; } else*/ if (!isprint(*p) || strchr(BADCHARS, *p)) *p = 'X'; } Note the /* before line 3 and the */ after "else" in line 11. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1587320 Title: munpack randomly saves attachment in folder hierarchy instead of single file To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mpack/+bug/1587320/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs