]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: do not try to remove /dev 20618/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 3 Sep 2021 15:29:11 +0000 (00:29 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 7 Sep 2021 05:08:21 +0000 (14:08 +0900)
src/test/test-udev.c

index c2c63cc679c2bf3c55fd3aaddbeb8a90e707a0cb..1a113a94c3cb8c41231cadb417f2401562b9f15f 100644 (file)
@@ -126,7 +126,7 @@ static int run(int argc, char *argv[]) {
                 } else {
                         if (unlink(devname) < 0)
                                 return log_error_errno(errno, "unlink('%s') failed: %m", devname);
-                        (void) rmdir_parents(devname, "/");
+                        (void) rmdir_parents(devname, "/dev");
                 }
         }