]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: fix typo
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 18 Mar 2024 13:48:19 +0000 (22:48 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 18 Mar 2024 13:48:24 +0000 (22:48 +0900)
Follow-up for fcf38e2cb33a9bc0c17352f64d47c270075b3cbb.

src/test/test-label.c

index c8dc91f9843f33b22837ee6a716da10c21a6f7c6..9d7ac18ba9a0dc10d015d011f8e497e89507f1d1 100644 (file)
@@ -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;
 }