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:
parent
ccfe369766
commit
ede2c11d66
@ -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':
|
||||
|
Loading…
Reference in New Issue
Block a user