3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 04:32:37 +01:00

test-runner: print which file failed to fchown

This commit is contained in:
James Prestwood 2019-11-21 09:27:42 -08:00 committed by Denis Kenzior
parent ccfe369766
commit ede2c11d66

View File

@ -589,7 +589,7 @@ static pid_t execute_program(char *argv[], char *envp[], bool wait,
fd = open(log_file, O_WRONLY | O_CREAT | O_APPEND,
S_IRUSR | S_IWUSR);
if (fchown(fd, log_uid, log_gid) < 0)
l_error("fchown failed");
l_error("failed to fchown %s", log_file);
}
if (fd > -1) {
@ -3190,7 +3190,7 @@ int main(int argc, char *argv[])
mkdir(log_dir, 0755);
if (chown(log_dir, log_uid, log_gid) < 0)
l_error("fchown failed");
l_error("failed to fchown %s", log_dir);
break;
case 'h':