]> granicus.if.org Git - neomutt/commit
Add chmod() wrappers to library
authorReis Radomil <reisradomil@fake-box.com>
Sat, 18 Nov 2017 08:40:25 +0000 (09:40 +0100)
committerRichard Russon <rich@flatcap.org>
Mon, 20 Nov 2017 12:40:51 +0000 (12:40 +0000)
commit4ed0df25bea17af3fb0468cabb5881f66c9a9d4a
tree9f6b850e8a729d5831805ba1bdd439cec871a34b
parentb1df63d5fd5421fc9d8d7d5077c2acc129670d17
Add chmod() wrappers to library

Add functions for changing/adding/removing permissions of files.

mutt_file_chmod          - set permissions
mutt_file_chmod_add      - add permissions
mutt_file_chmod_add_stat - add permissions
mutt_file_chmod_rm       - remove permissions
mutt_file_chmod_rm_stat  - remove permissions

The *_stat functions accept an additional optional stat structure
parameter, which must point to the stat structure of the file.
Using the *_stat functions can save a call to stat() as the stat
structure does not need to be queried by the mutt_file_chmod_* function.
mutt/file.c
mutt/file.h