]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Issue 774, 782: chmod() after creating a file or dir 774/head
authorGraham Percival <gperciva@tarsnap.com>
Fri, 23 Sep 2016 17:56:21 +0000 (10:56 -0700)
committerGraham Percival <gperciva@tarsnap.com>
Fri, 23 Sep 2016 17:56:21 +0000 (10:56 -0700)
commit38b3f516df865e2dffd0a1bbc9feb923ab2efc38
treea97a120bbae5730009c4c9e9d5afb77bc685a4a7
parent7f17c791dcfd8c0416e2cd2485b19410e47ef126
Issue 774, 782: chmod() after creating a file or dir

If the user's system has a default umask, then
    mkdir(pathname, mode);
will report "success" even if the created dir does not match the specified
mode.  Presumably that is desired in the general case, but when it comes to
testing libarchive this can generate false errors in `make check`.

chmod() is not affected by umask, so we call that after creating the file
or directory.

Sponsored by: Tarsnap Backup Inc.
libarchive/test/main.c