Summary: | wrong file size calculation for symbolic linked files | ||
---|---|---|---|
Product: | [Applications] k3b | Reporter: | newsscott |
Component: | general | Assignee: | Michał Małek <michalm> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | michalm |
Priority: | NOR | ||
Version: | 1.68.0 | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
newsscott
2009-11-01 12:40:24 UTC
Hi, thanks for the report. It's strange indeed, unfortunately I cannot reproduce it. Could you provide more info on this? Does it happen on new data project or on imported session? Does a type of file the link is pointing to make any difference? Hi Michał, Thanks for asking. I just noticed the problem: The link i was using was a dead link, which i was not aware of. So here is how to reproduce: $ ln -s /tmp/does_not_exist /tmp/bad_link k3b: "New Data Project" k3b: go to the project properties, tab "Filesystem", select "Symbolic Links" -> "Follow symlinks", Close k3b: navigate to /tmp and add "bad_link" by mouse click I agree, that this far away from normal use, well but it happend to me and it confused me. ;-) Yes, now I can reproduce it. Well, it is a corner case but it is also certainly a bug :) Good catch. SVN commit 1046059 by mmalek: * Show size 0 for broken symlinks instead of some insanely huge number (data projects, "follow symbolic links" option enabled) * Moved duplicated code from both constructors to the separate function init() BUG: 212609 M +94 -90 k3bfileitem.cpp M +11 -4 k3bfileitem.h WebSVN link: http://websvn.kde.org/?view=rev&revision=1046059 |