bug-recutils
[Top][All Lists]
Advanced

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

Re: [bug-recutils] recins does not create non-existent files, in spite c


From: Jose E. Marchesi
Subject: Re: [bug-recutils] recins does not create non-existent files, in spite claiming it does
Date: Wed, 29 Jan 2020 18:33:06 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

Hi Dominic.

    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.
    
I just updated the manual.
Thanks!



reply via email to

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