bug-recutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-recutils] recins does not create non-existent files, in spite claim


From: Dominic Walden
Subject: [bug-recutils] recins does not create non-existent files, in spite claiming it does
Date: Sat, 12 Jan 2019 16:19:28 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

In recutils.info line 4375 it says: "If the specified FILE does not exist, it is
created."

However, running:
$ recins -f Name -v "Mr Foo" contacts.rec

Returns the error:
"recins: error: file contacts.rec is not writable."

In utils/recutl.c line 390 the check for whether a file is writable is:
"euidaccess (file_name, W_OK) == 0", which would be false for non-existent 
files.

The man pages or --help do not mention whether or not a non-existent file is
created. Perhaps the Info docs just need updating.

Thanks,

Dom



reply via email to

[Prev in Thread] Current Thread [Next in Thread]