Summary: | bad bug - QtEditor will overwrite read-only files without prompting | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | Jon Smirl <jonsmirl> |
Component: | All editors | Assignee: | kdevelop-bugs-null |
Status: | RESOLVED NOT A BUG | ||
Severity: | wishlist | ||
Priority: | NOR | ||
Version: | git master | ||
Target Milestone: | --- | ||
Platform: | RedHat Enterprise Linux | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Jon Smirl
2003-07-04 20:15:49 UTC
Raising severity. This is pretty bad. (if correct, haven't tested it yet) I'd like to know if it is limited to QEditor though. Same problem occurs with Kate part. The real problem here is inablility to debug root priv apps without also running Kdevelop as root priv. If 60165 had a solution this bug would not be a problem. http://bugs.kde.org/show_bug.cgi?id=60165 I believe the problem here is when kdevelop is running as root it can write files even if the are marked read-only. Maybe we need to stat them first and check for write permission? -r--r--r-- 1 jonsmirl jonsmirl 37126 Nov 6 16:32 radeon_driver.c did a save -r--r--r-- 1 jonsmirl jonsmirl 37126 Nov 6 16:34 radeon_driver.c vi does not have same problem when running as root vi looks to be the exception. I just tried nano, mcedit, echo and rm. Neither makes as much as a beep when writing to a file I have no permission to whatsoever when I do it as root. Seeing how apps in general never attempt to keep root from doing what root wants to do, I don't even think this is technically a bug anymore and am lowering it to a wish instead. QEditor does not overwrite readonly files if not run as root. I think the energy would be best spent solving the real issue (bug 60165). We don't use QEditor anymore. |