Skip to content

Fails silently if backup file can't be created ([input_file]~) #53

@jpenney

Description

@jpenney

If the user has permission to edit the file, but not to create new files in the same to the directory, saving fails silently (unless verbose is used).

$ ls -la 
total 0
drwxr-xr-x   3 root        wheel  102 Jan  3 09:22 .
drwxrwxrwt  19 root        wheel  646 Jan  3 09:22 ..
-rw-r--r--   1 sampleuser  wheel    0 Jan  3 09:22 test_file.txt

Open the file for editing:

$ rmate --host samplehost --wait test_file.txt

Make some changes, and save the file, close the tab, and the file is still empty:

$ cat test_file.txt

Repeat the above with --verbose:

$ rmate --host samplehost --wait --verbose test_file.txt 
Using TCP socket to connect: ‘samplehost:52698’
Connect: ‘220 samplehost RMATE TextMate (Darwin 15.6.0)’
Saving test_file.txt
Save failed! Permission denied - test_file.txt~
Closed test_file.txt
Done

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions