From kde-bugs-dist Sun Apr 30 05:18:02 2000 From: owner () bugs ! kde ! org (Stephan Kulow) Date: Sun, 30 Apr 2000 05:18:02 +0000 To: kde-bugs-dist Subject: Bug#2140: marked as done (kedit renames directory to directory~ when saving file of same name) X-MARC-Message: https://marc.info/?l=kde-bugs-dist&m=95707207503157 Your message dated Sat, 29 Apr 2000 22:16:36 -0700 with message-id <00042922163600.06864@wantelbos> and subject line Fixed. has caused the attached bug report to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what I'm talking about this indicates a serious mail system misconfiguration somewhere. Please contact me immediately.) Stephan Kulow (administrator, KDE bugs database) Received: (at submit) by bugs.kde.org; 12 Oct 1999 04:34:12 +0000 From phma@oltronics.net Tue Oct 12 06:34:12 1999 Received: from mail.oltronics.net ([204.213.85.8]:51212 "EHLO mail.oltronics.net") by max.tat.physik.uni-tuebingen.de with ESMTP id ; Tue, 12 Oct 1999 06:33:59 +0200 Received: from neofelis (i015-1.clt-nc.oltronics.net [207.15.133.15]) by mail.oltronics.net (8.9.3/8.9.3) with SMTP id AAA15022 for ; Tue, 12 Oct 1999 00:33:39 -0400 From: Pierre Abbat To: submit@bugs.kde.org Subject: kedit renames directory to directory~ when saving file of same name Date: Tue, 12 Oct 1999 00:18:26 -0400 X-Mailer: KMail [version 1.1.0] Content-Type: text/plain MIME-Version: 1.0 Message-Id: <99101200332902.31115@neofelis> Content-Transfer-Encoding: 8bit X-KMail-Mark: Return-Path: X-Orcpt: rfc822;submit@bugs.kde.org Package: kedit Version: 1.2 This also applies to whatever version comes with Red Hat 6.0. I'm using Mandrake 5.3. I set up Linux on a friend's computer, who is totally new to Linux. He found a header file needed to compile some program and decided to copy it to the desktop. So he clicked on it, brought up kedit, and saved it to ~/Desktop . Next time he logged in, his icons were gone. I figured out what happened and talked him through renaming Desktop~ to Desktop (from a virtual console, while he was logged out of KDE, bien sūr). He had his icons back and was happy. I verified with kedit 1.2 that it does the same thing. I saved a text file as db , which is the name of a directory. It renamed db to db~ and saved the file as db with the permissions of the directory. This resulted in db being an executable text file (the original was not executable) and db~ being a directory with the wrong name. I didn't try to find out what would happen if db~ were a directory, db a text file, and I tried to save it. This should never happen. If kedit (or any other program that edits and saves files) notices that it is about to rename or delete a directory, or any other irregular file, when saving a file, it should flatly refuse to save it. phma