mirror of
https://github.com/systemd/systemd.git
synced 2025-01-24 06:04:05 +03:00
test: fix typo
Follow-up for fcf38e2cb33a9bc0c17352f64d47c270075b3cbb.
This commit is contained in:
parent
88123aa21c
commit
c73f2b7295
@ -66,7 +66,7 @@ static int get_dir_fd(const char *dir_path, mode_t mode) {
|
||||
assert(dir_path);
|
||||
dir_fd = RET_NERRNO(open_mkdir_at(AT_FDCWD, dir_path, O_CLOEXEC, mode));
|
||||
if (dir_fd < 0)
|
||||
return log_error_errno(dir_fd, "Error occured while opening directory =>: %m");
|
||||
return log_error_errno(dir_fd, "Error occurred while opening directory =>: %m");
|
||||
|
||||
return dir_fd;
|
||||
}
|
||||
@ -91,7 +91,7 @@ static int labelling_op(int dir_fd, const char *text, const char *path, mode_t m
|
||||
/* Write data to the file*/
|
||||
count = RET_NERRNO(write(write_fd, text, strlen(text)));
|
||||
if (count < 0)
|
||||
return log_error_errno(count, "Error occured while opening file for writing =>: %m");
|
||||
return log_error_errno(count, "Error occurred while opening file for writing =>: %m");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user